
public class BitmapPool extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) LinkedList<Bitmap> |
mPool |
| Constructor and Description |
|---|
BitmapPool() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyReusableOptions(BitmapFactory.Options aBitmapOptions) |
void |
clearBitmapPool() |
static BitmapPool |
getInstance() |
Bitmap |
obtainBitmapFromPool() |
Bitmap |
obtainSizedBitmapFromPool(int aWidth,
int aHeight) |
void |
returnDrawableToPool(ReusableBitmapDrawable drawable) |
final LinkedList<Bitmap> mPool
public static BitmapPool getInstance()
public void returnDrawableToPool(ReusableBitmapDrawable drawable)
public void applyReusableOptions(BitmapFactory.Options aBitmapOptions)
public Bitmap obtainBitmapFromPool()
public Bitmap obtainSizedBitmapFromPool(int aWidth,
int aHeight)
public void clearBitmapPool()