Search in sources :

Example 1 with PostprocessorProducer

use of com.facebook.imagepipeline.producers.PostprocessorProducer in project fresco by facebook.

the class ProducerSequenceFactory method getPostprocessorSequence.

/**
   * post-processor producer -> copy producer -> inputProducer
   */
private synchronized Producer<CloseableReference<CloseableImage>> getPostprocessorSequence(Producer<CloseableReference<CloseableImage>> inputProducer) {
    if (!mPostprocessorSequences.containsKey(inputProducer)) {
        PostprocessorProducer postprocessorProducer = mProducerFactory.newPostprocessorProducer(inputProducer);
        PostprocessedBitmapMemoryCacheProducer postprocessedBitmapMemoryCacheProducer = mProducerFactory.newPostprocessorBitmapMemoryCacheProducer(postprocessorProducer);
        mPostprocessorSequences.put(inputProducer, postprocessedBitmapMemoryCacheProducer);
    }
    return mPostprocessorSequences.get(inputProducer);
}
Also used : PostprocessorProducer(com.facebook.imagepipeline.producers.PostprocessorProducer) PostprocessedBitmapMemoryCacheProducer(com.facebook.imagepipeline.producers.PostprocessedBitmapMemoryCacheProducer)

Aggregations

PostprocessedBitmapMemoryCacheProducer (com.facebook.imagepipeline.producers.PostprocessedBitmapMemoryCacheProducer)1 PostprocessorProducer (com.facebook.imagepipeline.producers.PostprocessorProducer)1