Package 

Class BitmapPrepareProducer

  • All Implemented Interfaces:
    com.facebook.imagepipeline.producers.Producer

    
    public class BitmapPrepareProducer
     implements Producer<CloseableReference<CloseableImage>>
                        

    This producer issues to a call to prepareToDraw to allow the RendererThread upload the bitmap to GPU asynchronously before it is used. This has no affect on Android versions before N.

    Controlled via

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String PRODUCER_NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      BitmapPrepareProducer(Producer<CloseableReference<CloseableImage>> inputProducer, int minBitmapSizeBytes, int maxBitmapSizeBytes, boolean preparePrefetch)
    • Method Summary

      Modifier and Type Method Description
      void produceResults(Consumer<CloseableReference<CloseableImage>> consumer, ProducerContext producerContext)
      • Methods inherited from class com.facebook.imagepipeline.producers.Producer

        produceResults
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BitmapPrepareProducer

        BitmapPrepareProducer(Producer<CloseableReference<CloseableImage>> inputProducer, int minBitmapSizeBytes, int maxBitmapSizeBytes, boolean preparePrefetch)
        Parameters:
        inputProducer - The next producer in the pipeline
        minBitmapSizeBytes - Bitmaps with a getByteCount smaller than this valueare not uploaded
        maxBitmapSizeBytes - Bitmaps with a getByteCount larger than this valueare not uploaded