-
- All Implemented Interfaces:
-
com.facebook.fresco.vito.options.ImageOptionsDrawableFactory,com.facebook.imagepipeline.drawable.DrawableFactory
public class DefaultBitmapAnimationDrawableFactory implements DrawableFactory, ImageOptionsDrawableFactoryAnimation factory for AnimatedDrawable2.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intCACHING_STRATEGY_NO_CACHEpublic final static intCACHING_STRATEGY_FRESCO_CACHEpublic final static intCACHING_STRATEGY_FRESCO_CACHE_NO_REUSINGpublic final static intCACHING_STRATEGY_KEEP_LAST_CACHE
-
Constructor Summary
Constructors Constructor Description DefaultBitmapAnimationDrawableFactory(AnimatedDrawableBackendProvider animatedDrawableBackendProvider, ScheduledExecutorService scheduledExecutorServiceForUiThread, ExecutorService executorServiceForFramePreparing, MonotonicClock monotonicClock, PlatformBitmapFactory platformBitmapFactory, CountingMemoryCache<CacheKey, CloseableImage> backingCache, Supplier<AnimatedCache> animatedDrawableCache, Supplier<Integer> cachingStrategySupplier, Supplier<Integer> numberOfFramesToPrepareSupplier, Supplier<Boolean> useDeepEqualsForCacheKey, Supplier<Boolean> useNewBitmapRender, Supplier<Boolean> downscaleFrameToDrawableDimensions, Supplier<Integer> animationFpsLimit, Supplier<Integer> balancedStrategyPreparationMs)
-
Method Summary
Modifier and Type Method Description booleansupportsImageType(CloseableImage image)DrawablecreateDrawable(CloseableImage image)DrawablecreateDrawable(Resources resources, CloseableImage closeableImage, ImageOptions imageOptions)-
-
Constructor Detail
-
DefaultBitmapAnimationDrawableFactory
DefaultBitmapAnimationDrawableFactory(AnimatedDrawableBackendProvider animatedDrawableBackendProvider, ScheduledExecutorService scheduledExecutorServiceForUiThread, ExecutorService executorServiceForFramePreparing, MonotonicClock monotonicClock, PlatformBitmapFactory platformBitmapFactory, CountingMemoryCache<CacheKey, CloseableImage> backingCache, Supplier<AnimatedCache> animatedDrawableCache, Supplier<Integer> cachingStrategySupplier, Supplier<Integer> numberOfFramesToPrepareSupplier, Supplier<Boolean> useDeepEqualsForCacheKey, Supplier<Boolean> useNewBitmapRender, Supplier<Boolean> downscaleFrameToDrawableDimensions, Supplier<Integer> animationFpsLimit, Supplier<Integer> balancedStrategyPreparationMs)
-
-
Method Detail
-
supportsImageType
boolean supportsImageType(CloseableImage image)
-
createDrawable
Drawable createDrawable(CloseableImage image)
-
createDrawable
Drawable createDrawable(Resources resources, CloseableImage closeableImage, ImageOptions imageOptions)
-
-
-
-