Java 类com.facebook.imagepipeline.animated.impl.AnimatedDrawableBackendImpl 实例源码

项目:GitHub    文件:AnimatedFactoryV2Impl.java   
private AnimatedDrawableBackendProvider getAnimatedDrawableBackendProvider() {
  if (mAnimatedDrawableBackendProvider == null) {
    mAnimatedDrawableBackendProvider = new AnimatedDrawableBackendProvider() {
      @Override
      public AnimatedDrawableBackend get(AnimatedImageResult animatedImageResult, Rect bounds) {
        return new AnimatedDrawableBackendImpl(
            getAnimatedDrawableUtil(),
            animatedImageResult,
            bounds);
      }
    };
  }
  return mAnimatedDrawableBackendProvider;
}
项目:GitHub    文件:AnimatedFactoryV2Impl.java   
private AnimatedImageFactory buildAnimatedImageFactory() {
  AnimatedDrawableBackendProvider animatedDrawableBackendProvider =
      new AnimatedDrawableBackendProvider() {
        @Override
        public AnimatedDrawableBackend get(AnimatedImageResult imageResult, Rect bounds) {
          return new AnimatedDrawableBackendImpl(getAnimatedDrawableUtil(), imageResult, bounds);
        }
      };
  return new AnimatedImageFactoryImpl(animatedDrawableBackendProvider, mPlatformBitmapFactory);
}
项目:fresco    文件:AnimatedFactoryV2Impl.java   
private AnimatedDrawableBackendProvider getAnimatedDrawableBackendProvider() {
  if (mAnimatedDrawableBackendProvider == null) {
    mAnimatedDrawableBackendProvider = new AnimatedDrawableBackendProvider() {
      @Override
      public AnimatedDrawableBackend get(AnimatedImageResult animatedImageResult, Rect bounds) {
        return new AnimatedDrawableBackendImpl(
            getAnimatedDrawableUtil(),
            animatedImageResult,
            bounds);
      }
    };
  }
  return mAnimatedDrawableBackendProvider;
}
项目:fresco    文件:AnimatedFactoryV2Impl.java   
private AnimatedImageFactory buildAnimatedImageFactory() {
  AnimatedDrawableBackendProvider animatedDrawableBackendProvider =
      new AnimatedDrawableBackendProvider() {
        @Override
        public AnimatedDrawableBackend get(AnimatedImageResult imageResult, Rect bounds) {
          return new AnimatedDrawableBackendImpl(getAnimatedDrawableUtil(), imageResult, bounds);
        }
      };
  return new AnimatedImageFactoryImpl(animatedDrawableBackendProvider, mPlatformBitmapFactory);
}