Removed AnimatedImageFactory from ImagePipelineConfig
Summary: This removes `AnimatedImageFactory` from `ImagePipelineConfig` since it's no longer needed and we have the more generic `ImageDecoder` and `DrawableFactory` interfaces instead.
@@ -28,7 +28,6 @@ import com.facebook.common.memory.NoOpMemoryTrimmableRegistry;
import com.facebook.common.webp.BitmapCreator;
import com.facebook.common.webp.WebpBitmapFactory;
import com.facebook.common.webp.WebpSupportStatus;
-import com.facebook.imagepipeline.animated.factory.AnimatedImageFactory;
import com.facebook.imagepipeline.bitmaps.HoneycombBitmapCreator;
import com.facebook.imagepipeline.bitmaps.PlatformBitmapFactory;
import com.facebook.imagepipeline.cache.BitmapMemoryCacheTrimStrategy;
@@ -71,7 +70,6 @@ public class ImagePipelineConfig {
// on demand if needed.
// There are a lot of parameters in this class. Please follow strict alphabetical order.
- @Nullable private final AnimatedImageFactory mAnimatedImageFactory;
private final Bitmap.Config mBitmapConfig;
private final Supplier<MemoryCacheParams> mBitmapMemoryCacheParamsSupplier;
private final CountingMemoryCache.CacheTrimStrategy mBitmapMemoryCacheTrimStrategy;
@@ -102,7 +100,6 @@ public class ImagePipelineConfig {
private ImagePipelineConfig(Builder builder) {
// We have to build experiments before the rest
mImagePipelineExperiments = builder.mExperimentsBuilder.build();
- mAnimatedImageFactory = builder.mAnimatedImageFactory;
mBitmapMemoryCacheParamsSupplier =
builder.mBitmapMemoryCacheParamsSupplier == null ?
new DefaultBitmapMemoryCacheParamsSupplier(
@@ -221,11 +218,6 @@ public class ImagePipelineConfig {
sDefaultImageRequestConfig = new DefaultImageRequestConfig();
}
- @Nullable
- public AnimatedImageFactory getAnimatedImageFactory() {
- return mAnimatedImageFactory;
- }
-
public Bitmap.Config getBitmapConfig() {
return mBitmapConfig;
}
@@ -350,7 +342,6 @@ public class ImagePipelineConfig {
public static class Builder {
- private AnimatedImageFactory mAnimatedImageFactory;
private Bitmap.Config mBitmapConfig;
private Supplier<MemoryCacheParams> mBitmapMemoryCacheParamsSupplier;
private CountingMemoryCache.CacheTrimStrategy mBitmapMemoryCacheTrimStrategy;
@@ -381,11 +372,6 @@ public class ImagePipelineConfig {
mContext = Preconditions.checkNotNull(context);
}
- public Builder setAnimatedImageFactory(AnimatedImageFactory animatedImageFactory) {
- mAnimatedImageFactory = animatedImageFactory;
- return this;
- }
-
public Builder setBitmapsConfig(Bitmap.Config config) {
mBitmapConfig = config;
return this;
