Search in sources :

Example 1 with BitmapFrameCache

use of com.facebook.fresco.animation.bitmap.BitmapFrameCache in project fresco by facebook.

the class ExperimentalBitmapAnimationDrawableFactory method createAnimationBackend.

private AnimationBackend createAnimationBackend(AnimatedImageResult animatedImageResult) {
    AnimatedDrawableBackend animatedDrawableBackend = createAnimatedDrawableBackend(animatedImageResult);
    BitmapFrameCache bitmapFrameCache = createBitmapFrameCache(animatedImageResult);
    BitmapAnimationBackend bitmapAnimationBackend = new BitmapAnimationBackend(mPlatformBitmapFactory, bitmapFrameCache, new AnimatedDrawableBackendAnimationInformation(animatedDrawableBackend), new AnimatedDrawableBackendFrameRenderer(bitmapFrameCache, animatedDrawableBackend));
    return AnimationBackendDelegateWithInactivityCheck.createForBackend(bitmapAnimationBackend, mMonotonicClock, mScheduledExecutorServiceForUiThread);
}
Also used : AnimatedDrawableBackend(com.facebook.imagepipeline.animated.base.AnimatedDrawableBackend) AnimatedDrawableBackendFrameRenderer(com.facebook.fresco.animation.bitmap.wrapper.AnimatedDrawableBackendFrameRenderer) AnimatedDrawableBackendAnimationInformation(com.facebook.fresco.animation.bitmap.wrapper.AnimatedDrawableBackendAnimationInformation) BitmapAnimationBackend(com.facebook.fresco.animation.bitmap.BitmapAnimationBackend) BitmapFrameCache(com.facebook.fresco.animation.bitmap.BitmapFrameCache)

Aggregations

BitmapAnimationBackend (com.facebook.fresco.animation.bitmap.BitmapAnimationBackend)1 BitmapFrameCache (com.facebook.fresco.animation.bitmap.BitmapFrameCache)1 AnimatedDrawableBackendAnimationInformation (com.facebook.fresco.animation.bitmap.wrapper.AnimatedDrawableBackendAnimationInformation)1 AnimatedDrawableBackendFrameRenderer (com.facebook.fresco.animation.bitmap.wrapper.AnimatedDrawableBackendFrameRenderer)1 AnimatedDrawableBackend (com.facebook.imagepipeline.animated.base.AnimatedDrawableBackend)1