|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface GifDecoder.BitmapProvider
An interface that can be used to provide reused Bitmaps to avoid GCs from constantly
allocating Bitmaps for every frame.
| Method Summary | |
|---|---|
Bitmap |
obtain(int width,
int height,
Bitmap.Config config)
Returns an Bitmap with exactly the given dimensions and config, or null if no such Bitmap
could be obtained. |
void |
release(Bitmap bitmap)
Releases the given Bitmap back to the pool. |
| Method Detail |
|---|
Bitmap obtain(int width,
int height,
Bitmap.Config config)
Bitmap with exactly the given dimensions and config, or null if no such Bitmap
could be obtained.
width - The width in pixels of the desired Bitmap.height - The height in pixels of the desired Bitmap.config - The Bitmap.Config of the desired Bitmap.void release(Bitmap bitmap)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||