use of com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool in project glide by bumptech.
the class ThumbFetcher method build.
private static ThumbFetcher build(Context context, Uri uri, ThumbnailQuery query) {
ArrayPool byteArrayPool = Glide.get(context).getArrayPool();
ThumbnailStreamOpener opener = new ThumbnailStreamOpener(Glide.get(context).getRegistry().getImageHeaderParsers(), query, byteArrayPool, context.getContentResolver());
return new ThumbFetcher(uri, opener);
}
use of com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool in project Rocket by mozilla-tw.
the class ThumbFetcher method build.
private static ThumbFetcher build(Context context, Uri uri, ThumbnailQuery query) {
ArrayPool byteArrayPool = Glide.get(context).getArrayPool();
ThumbnailStreamOpener opener = new ThumbnailStreamOpener(Glide.get(context).getRegistry().getImageHeaderParsers(), query, byteArrayPool, context.getContentResolver());
return new ThumbFetcher(uri, opener);
}
use of com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool in project glide by bumptech.
the class DownsamplerEmulatorTest method buildDownsampler.
private static Downsampler buildDownsampler() {
List<ImageHeaderParser> parsers = Collections.<ImageHeaderParser>singletonList(new DefaultImageHeaderParser());
DisplayMetrics displayMetrics = new DisplayMetrics();
// XHDPI.
displayMetrics.densityDpi = 320;
BitmapPool bitmapPool = new BitmapPoolAdapter();
ArrayPool arrayPool = new LruArrayPool();
return new Downsampler(parsers, displayMetrics, bitmapPool, arrayPool);
}
Aggregations