| java.lang.Object | |
| ↳ | com.facebook.imagepipeline.memory.LruBitmapPool |
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| protected final PoolBackend<Bitmap> | mStrategy | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| LruBitmapPool(int maxPoolSize, int maxBitmapSize, PoolStatsTracker poolStatsTracker, MemoryTrimmableRegistry memoryTrimmableRegistry) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| synchronized Bitmap |
get(int size)
Gets a 'value' of size 'S' (or larger) from the pool, if available.
| ||||||||||
| void | release(Bitmap value) | ||||||||||
| void |
trim(MemoryTrimType trimType)
Trim memory.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.facebook.common.memory.MemoryTrimmable
| |||||||||||
From interface
com.facebook.common.memory.Pool
| |||||||||||
From interface
com.facebook.common.references.ResourceReleaser
| |||||||||||
Gets a 'value' of size 'S' (or larger) from the pool, if available. Allocates a new value if necessary.
| size | the logical size to allocate |
|---|