Java 类com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor 实例源码

项目:Gallery    文件:GlideSetup.java   
@Override
public void applyOptions(Context context, GlideBuilder builder) {
    //builder.setMemoryCache(new LruResourceCache(64 * 1024 * 1024));
    //builder.setBitmapPool(new LruBitmapPool(32 * 1024 * 1024));
    builder.setDecodeFormat(DecodeFormat.PREFER_ARGB_8888);
    builder.setDiskCache(new InternalCacheDiskCacheFactory(context, 2147483647));
    builder.setResizeService(new FifoPriorityThreadPoolExecutor(2));
}
项目:MoeGallery    文件:GlideSetup.java   
@Override
public void applyOptions(Context context, GlideBuilder builder) {
    //builder.setMemoryCache(new LruResourceCache(64 * 1024 * 1024));
    //builder.setBitmapPool(new LruBitmapPool(32 * 1024 * 1024));
    builder.setDecodeFormat(DecodeFormat.PREFER_ARGB_8888);
    builder.setDiskCache(new InternalCacheDiskCacheFactory(context, 2147483647));
    builder.setResizeService(new FifoPriorityThreadPoolExecutor(2));
}
项目:glide-support    文件:GlideModule.java   
@Override public void applyOptions(Context context, GlideBuilder builder) {
    //if (VERSION.SDK_INT == VERSION_CODES.KITKAT)
    builder.setResizeService(new FifoPriorityThreadPoolExecutor(4));
}
项目:glide-support    文件:GlideModule.java   
@Override public void applyOptions(Context context, GlideBuilder builder) {
    // debug: make sure there's enough threads so delay transformations don't block the others
    builder.setDiskCacheService(new FifoPriorityThreadPoolExecutor(20));
    builder.setResizeService(new FifoPriorityThreadPoolExecutor(20));
}