-
- All Implemented Interfaces:
-
com.facebook.fresco.animation.bitmap.BitmapFrameCache
public class FrescoFrameCache implements BitmapFrameCacheBitmap frame cache that uses Fresco's AnimatedFrameCache to cache frames.
-
-
Constructor Summary
Constructors Constructor Description FrescoFrameCache(AnimatedFrameCache animatedFrameCache, boolean enableBitmapReusing)
-
Method Summary
Modifier and Type Method Description synchronized CloseableReference<Bitmap>getCachedFrame(int frameNumber)synchronized CloseableReference<Bitmap>getFallbackFrame(int frameNumber)synchronized CloseableReference<Bitmap>getBitmapToReuseForFrame(int frameNumber, int width, int height)synchronized booleancontains(int frameNumber)synchronized intgetSizeInBytes()synchronized voidclear()synchronized voidonFrameRendered(int frameNumber, CloseableReference<Bitmap> bitmapReference, int frameType)synchronized voidonFramePrepared(int frameNumber, CloseableReference<Bitmap> bitmapReference, int frameType)voidsetFrameCacheListener(@Nullable() BitmapFrameCache.FrameCacheListener frameCacheListener)booleanonAnimationPrepared(Map<Integer, out CloseableReference<Bitmap>> frameBitmaps)booleanisAnimationReady()-
Methods inherited from class com.facebook.fresco.animation.bitmap.BitmapFrameCache
clear, contains, getBitmapToReuseForFrame, getCachedFrame, getFallbackFrame, getSizeInBytes, isAnimationReady, onAnimationPrepared, onFramePrepared, onFrameRendered, setFrameCacheListener -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FrescoFrameCache
FrescoFrameCache(AnimatedFrameCache animatedFrameCache, boolean enableBitmapReusing)
-
-
Method Detail
-
getCachedFrame
@Nullable() synchronized CloseableReference<Bitmap> getCachedFrame(int frameNumber)
-
getFallbackFrame
@Nullable() synchronized CloseableReference<Bitmap> getFallbackFrame(int frameNumber)
-
getBitmapToReuseForFrame
@Nullable() synchronized CloseableReference<Bitmap> getBitmapToReuseForFrame(int frameNumber, int width, int height)
-
contains
synchronized boolean contains(int frameNumber)
-
getSizeInBytes
synchronized int getSizeInBytes()
-
clear
synchronized void clear()
-
onFrameRendered
synchronized void onFrameRendered(int frameNumber, CloseableReference<Bitmap> bitmapReference, int frameType)
-
onFramePrepared
synchronized void onFramePrepared(int frameNumber, CloseableReference<Bitmap> bitmapReference, int frameType)
-
setFrameCacheListener
void setFrameCacheListener(@Nullable() BitmapFrameCache.FrameCacheListener frameCacheListener)
-
onAnimationPrepared
boolean onAnimationPrepared(Map<Integer, out CloseableReference<Bitmap>> frameBitmaps)
-
isAnimationReady
boolean isAnimationReady()
-
-
-
-