public static class TextureItem.TexturePool extends SyncPool<TextureItem>
| Modifier and Type | Field and Description |
|---|---|
protected int |
mTexCnt |
mClearItems, mFill, mMaxFill, mPool| Constructor and Description |
|---|
TexturePool(int maxFill) |
TexturePool(int maxFill,
int width,
int height,
boolean mipmap) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
clearItem(TextureItem t) |
protected TextureItem |
createItem()
Creates the item.
|
protected void |
freeItem(TextureItem t) |
TextureItem |
get()
Retrieve a TextureItem from pool.
|
TextureItem |
get(Bitmap bitmap) |
protected void |
initTexture(TextureItem t) |
TextureItem |
releaseAll(TextureItem t)
Release 'list' to pool.
|
protected void |
releaseBitmap(TextureItem t) |
public TexturePool(int maxFill,
int width,
int height,
boolean mipmap)
public TexturePool(int maxFill)
public TextureItem releaseAll(TextureItem t)
SyncPoolreleaseAll in class SyncPool<TextureItem>public TextureItem get()
get in class SyncPool<TextureItem>public TextureItem get(Bitmap bitmap)
protected TextureItem createItem()
SyncPoolcreateItem in class SyncPool<TextureItem>protected boolean clearItem(TextureItem t)
clearItem in class SyncPool<TextureItem>t - set initial stateprotected void freeItem(TextureItem t)
freeItem in class SyncPool<TextureItem>t - release resourcesprotected void releaseBitmap(TextureItem t)
protected void initTexture(TextureItem t)