@Override
  public void produceResults(
      final Consumer<CloseableReference<CloseableImage>> consumer,
      final ProducerContext producerContext) {
    // only prepare pre-fetched bitmaps if enabled
    if (producerContext.isPrefetch() && !mPreparePrefetch) {
      mInputProducer.produceResults(consumer, producerContext);
    } else {
      mInputProducer.produceResults(
          new BitmapPrepareConsumer(consumer, mMinBitmapSizeBytes, mMaxBitmapSizeBytes),
          producerContext);
    }
  }
@param inputProducer The next producer in the pipeline
@param minBitmapSizeBytes Bitmaps with a {@link Bitmap#getByteCount()} smaller than this value
    are not uploaded
@param maxBitmapSizeBytes Bitmaps with a {@link Bitmap#getByteCount()} larger than this value
    are not uploaded
imagepipeline/src/main/java/com/facebook/imagepipeline/producers/BitmapPrepareProducer.java