Home
last modified time | relevance | path

Searched refs:toReuse (Results 1 – 2 of 2) sorted by relevance

/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DCenterCrop.java28 final Bitmap toReuse = pool.get(outWidth, outHeight, toTransform.getConfig() != null in transform() local
30 … Bitmap transformed = TransformationUtils.centerCrop(toReuse, toTransform, outWidth, outHeight); in transform()
31 if (toReuse != null && toReuse != transformed && !pool.put(toReuse)) { in transform()
32 toReuse.recycle(); in transform()
DTransformationUtils.java111 Bitmap toReuse = pool.get(targetWidth, targetHeight, config); in fitCenter() local
112 if (toReuse == null) { in fitCenter()
113 toReuse = Bitmap.createBitmap(targetWidth, targetHeight, config); in fitCenter()
116 TransformationUtils.setAlpha(toFit, toReuse); in fitCenter()
121 Log.v(TAG, "toReuse: " + toReuse.getWidth() + "x" + toReuse.getHeight()); in fitCenter()
125 Canvas canvas = new Canvas(toReuse); in fitCenter()
131 return toReuse; in fitCenter()