com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor Java Examples
The following examples show how to use
com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GlideSetup.java From MoeGallery with GNU General Public License v3.0 | 5 votes |
@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)); }
Example #2
Source File: GlideModule.java From glide-support with The Unlicense | 4 votes |
@Override public void applyOptions(Context context, GlideBuilder builder) { //if (VERSION.SDK_INT == VERSION_CODES.KITKAT) builder.setResizeService(new FifoPriorityThreadPoolExecutor(4)); }
Example #3
Source File: GlideModule.java From glide-support with The Unlicense | 4 votes |
@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)); }