public class

BitmapPrepareProducer

extends Object
implements Producer<T>
java.lang.Object
   ↳ com.facebook.imagepipeline.producers.BitmapPrepareProducer

Class Overview

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 com.facebook.imagepipeline.core.ImagePipelineExperiments#mUseBitmapPrepareToDraw

Summary

Constants
String PRODUCER_NAME
Public Constructors
BitmapPrepareProducer(Producer<CloseableReference<CloseableImage>> inputProducer, int minBitmapSizeBytes, int maxBitmapSizeBytes, boolean preparePrefetch)
Public Methods
void produceResults(Consumer<CloseableReference<CloseableImage>> consumer, ProducerContext producerContext)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.producers.Producer

Constants

public static final String PRODUCER_NAME

Constant Value: "BitmapPrepareProducer"

Public Constructors

public 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 value are not uploaded
maxBitmapSizeBytes Bitmaps with a getByteCount() larger than this value are not uploaded

Public Methods

public void produceResults (Consumer<CloseableReference<CloseableImage>> consumer, ProducerContext producerContext)