public class

DefaultBitmapFramePreparer

extends Object
implements BitmapFramePreparer
java.lang.Object
   ↳ com.facebook.fresco.animation.bitmap.preparation.DefaultBitmapFramePreparer

Class Overview

Default bitmap frame preparer that uses the given ExecutorService to schedule jobs. An instance of this class can be shared between multiple animated images.

Summary

Public Constructors
DefaultBitmapFramePreparer(PlatformBitmapFactory platformBitmapFactory, BitmapFrameRenderer bitmapFrameRenderer, Bitmap.Config bitmapConfig, ExecutorService executorService)
Public Methods
boolean prepareFrame(BitmapFrameCache bitmapFrameCache, AnimationBackend animationBackend, int frameNumber)
Prepare the frame with the given frame number and notify the supplied bitmap frame cache once the frame is ready by calling onFramePrepared(int, CloseableReference, int)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.fresco.animation.bitmap.preparation.BitmapFramePreparer

Public Constructors

public DefaultBitmapFramePreparer (PlatformBitmapFactory platformBitmapFactory, BitmapFrameRenderer bitmapFrameRenderer, Bitmap.Config bitmapConfig, ExecutorService executorService)

Public Methods

public boolean prepareFrame (BitmapFrameCache bitmapFrameCache, AnimationBackend animationBackend, int frameNumber)

Prepare the frame with the given frame number and notify the supplied bitmap frame cache once the frame is ready by calling onFramePrepared(int, CloseableReference, int)

Parameters
bitmapFrameCache the cache to notify for prepared frames
animationBackend the backend to prepare frames for