Bitmap Pool
interface BitmapPool
Content copied to clipboard
An object pool that enables callers to reuse Bitmap objects.
Types
Functions
get Dirty Or Null
Link copied to clipboard
abstract fun getDirtyOrNull(@Px width: Int, @Px height: Int, config: Bitmap.Config): Bitmap?
Content copied to clipboard
Identical to getDirty except that null will be returned if the pool does not contain a usable bitmap.
put
Link copied to clipboard
Add the given Bitmap to the pool if it is eligible to be re-used and the pool can fit it. Otherwise, this method calls Bitmap.recycle on the bitmap and discards it.
trim Memory
Link copied to clipboard