private List<Entry> getSpinnerItems() {
    return Arrays.asList(
        new Entry(R.string.imagepipeline_postprocessor_show_original, null),
        new Entry(
            R.string.imagepipeline_postprocessor_set_greyscale_slow,
            new BenchmarkPostprocessorForDuplicatedBitmapInPlace(
                this, new SlowGreyScalePostprocessor())),
        new Entry(
            R.string.imagepipeline_postprocessor_set_greyscale,
            new BenchmarkPostprocessorForDuplicatedBitmapInPlace(
                this, new FasterGreyScalePostprocessor())),
        new Entry(
            R.string.imagepipeline_postprocessor_set_watermark,
            new BenchmarkPostprocessorForDuplicatedBitmapInPlace(
                this, new WatermarkPostprocessor(WATERMARK_COUNT, WATERMARK_STRING))),
        new Entry(
            R.string.imagepipeline_postprocessor_set_watermark_cached,
            new BenchmarkPostprocessorForDuplicatedBitmapInPlace(
                this, new CachedWatermarkPostprocessor(WATERMARK_COUNT, WATERMARK_STRING))),
        new Entry(
            R.string.imagepipeline_postprocessor_set_native_blur,
            new BenchmarkPostprocessorForDuplicatedBitmapInPlace(
                this, new IterativeBoxBlurPostProcessor(25, 3))),
        new Entry(
            R.string.imagepipeline_postprocessor_set_blur,
            new BenchmarkPostprocessorForDuplicatedBitmap(
                this, new BlurPostProcessor(20, getContext()))),
        new Entry(
            R.string.imagepipeline_postprocessor_set_scaling_blur,
            new BenchmarkPostprocessorForManualBitmapHandling(
                this, new ScalingBlurPostprocessor(25, 3, 4))),
        new Entry(
            R.string.imagepipeline_postprocessor_set_native_round_as_circle,
            new BenchmarkPostprocessorForDuplicatedBitmapInPlace(
                this, new RoundAsCirclePostprocessor(false))),
        new Entry(
            R.string.imagepipeline_postprocessor_set_round_as_aa_circle,
            new BenchmarkPostprocessorForDuplicatedBitmapInPlace(
                this, new RoundAsCirclePostprocessor(true))),
        new Entry(
            R.string.imagepipeline_postprocessor_set_rounded_corners,
            new BenchmarkPostprocessorForDuplicatedBitmapInPlace(
                this, new RoundedCornersPostprocessor())),
        new Entry(
            R.string.imagepipeline_postprocessor_set_round_as_circle,
            new BenchmarkPostprocessorForDuplicatedBitmap(this, new RoundPostprocessor())));
  }
Fragment that illustrates how to use the image pipeline directly in order to create
notifications.
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/imagepipeline/ImagePipelinePostProcessorFragment.java