-
- All Implemented Interfaces:
-
com.facebook.fresco.animation.bitmap.BitmapFrameCache
public final class FrescoFpsCache implements BitmapFrameCacheBitmap frame cache used for animated drawables
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classFrescoFpsCache.Companion
-
Field Summary
Fields Modifier and Type Field Description private final IntegersizeInBytes
-
Constructor Summary
Constructors Constructor Description FrescoFpsCache(AnimatedImageResult animatedImageResult, FpsCompressorInfo fpsCompressorInfo, AnimatedCache animatedDrawableCache)
-
Method Summary
Modifier and Type Method Description IntegergetSizeInBytes()CloseableReference<Bitmap>getCachedFrame(Integer frameNumber)CloseableReference<Bitmap>getFallbackFrame(Integer frameNumber)CloseableReference<Bitmap>getBitmapToReuseForFrame(Integer frameNumber, Integer width, Integer height)Booleancontains(Integer frameNumber)Unitclear()BooleanisAnimationReady()UnitonFrameRendered(Integer frameNumber, CloseableReference<Bitmap> bitmapReference, Integer frameType)UnitonFramePrepared(Integer frameNumber, CloseableReference<Bitmap> bitmapReference, Integer frameType)BooleanonAnimationPrepared(Map<Integer, CloseableReference<Bitmap>> frameBitmaps)UnitsetFrameCacheListener(BitmapFrameCache.FrameCacheListener frameCacheListener)-
-
Constructor Detail
-
FrescoFpsCache
FrescoFpsCache(AnimatedImageResult animatedImageResult, FpsCompressorInfo fpsCompressorInfo, AnimatedCache animatedDrawableCache)
-
-
Method Detail
-
getSizeInBytes
Integer getSizeInBytes()
-
getCachedFrame
CloseableReference<Bitmap> getCachedFrame(Integer frameNumber)
-
getFallbackFrame
CloseableReference<Bitmap> getFallbackFrame(Integer frameNumber)
-
getBitmapToReuseForFrame
CloseableReference<Bitmap> getBitmapToReuseForFrame(Integer frameNumber, Integer width, Integer height)
-
isAnimationReady
Boolean isAnimationReady()
-
onFrameRendered
Unit onFrameRendered(Integer frameNumber, CloseableReference<Bitmap> bitmapReference, Integer frameType)
-
onFramePrepared
Unit onFramePrepared(Integer frameNumber, CloseableReference<Bitmap> bitmapReference, Integer frameType)
-
onAnimationPrepared
Boolean onAnimationPrepared(Map<Integer, CloseableReference<Bitmap>> frameBitmaps)
-
setFrameCacheListener
Unit setFrameCacheListener(BitmapFrameCache.FrameCacheListener frameCacheListener)
-
-
-
-