Back to Fresco

BitmapPrepareProducer

docs/javadoc/reference/com/facebook/imagepipeline/producers/BitmapPrepareProducer.html

3.6.021.6 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

Summary: Constants | Ctors | Methods | Inherited Methods | [Expand All]

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
Public Constructors
Public Methods
void

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface com.facebook.imagepipeline.producers.Producer

| abstract void | produceResults(Consumer<T> consumer, ProducerContext context) Start producing results for given context. |

|

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)

+Generated by Doclava. +