Search in sources :

Example 1 with BitmapMemoryCacheKeyMultiplexProducer

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

the class ProducerSequenceFactory method newBitmapCacheGetToBitmapCacheSequence.

/**
   * Bitmap cache get -> thread hand off -> multiplex -> bitmap cache
   * @param inputProducer producer providing the input to the bitmap cache
   * @return bitmap cache get to bitmap cache sequence
   */
private Producer<CloseableReference<CloseableImage>> newBitmapCacheGetToBitmapCacheSequence(Producer<CloseableReference<CloseableImage>> inputProducer) {
    BitmapMemoryCacheProducer bitmapMemoryCacheProducer = mProducerFactory.newBitmapMemoryCacheProducer(inputProducer);
    BitmapMemoryCacheKeyMultiplexProducer bitmapKeyMultiplexProducer = mProducerFactory.newBitmapMemoryCacheKeyMultiplexProducer(bitmapMemoryCacheProducer);
    ThreadHandoffProducer<CloseableReference<CloseableImage>> threadHandoffProducer = mProducerFactory.newBackgroundThreadHandoffProducer(bitmapKeyMultiplexProducer, mThreadHandoffProducerQueue);
    return mProducerFactory.newBitmapMemoryCacheGetProducer(threadHandoffProducer);
}
Also used : PostprocessedBitmapMemoryCacheProducer(com.facebook.imagepipeline.producers.PostprocessedBitmapMemoryCacheProducer) BitmapMemoryCacheProducer(com.facebook.imagepipeline.producers.BitmapMemoryCacheProducer) BitmapMemoryCacheKeyMultiplexProducer(com.facebook.imagepipeline.producers.BitmapMemoryCacheKeyMultiplexProducer) CloseableReference(com.facebook.common.references.CloseableReference)

Aggregations

CloseableReference (com.facebook.common.references.CloseableReference)1 BitmapMemoryCacheKeyMultiplexProducer (com.facebook.imagepipeline.producers.BitmapMemoryCacheKeyMultiplexProducer)1 BitmapMemoryCacheProducer (com.facebook.imagepipeline.producers.BitmapMemoryCacheProducer)1 PostprocessedBitmapMemoryCacheProducer (com.facebook.imagepipeline.producers.PostprocessedBitmapMemoryCacheProducer)1