use of com.facebook.common.executors.SerialExecutorService in project fresco by facebook.
the class AnimatedFactoryImpl method getAnimatedDrawableFactory.
@Override
public AnimatedDrawableFactory getAnimatedDrawableFactory(Context context) {
if (mAnimatedDrawableFactory == null) {
SerialExecutorService serialExecutorService = new DefaultSerialExecutorService(mExecutorSupplier.forDecode());
ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
mAnimatedDrawableFactory = buildAnimatedDrawableFactory(serialExecutorService, activityManager, getAnimatedDrawableUtil(), getAnimatedDrawableBackendProvider(), UiThreadImmediateExecutorService.getInstance(), RealtimeSinceBootClock.get(), context.getResources());
}
return mAnimatedDrawableFactory;
}
Aggregations