Package org.oscim.renderer.bucket
Class TextureItem.TexturePool
- Enclosing class:
- TextureItem
-
Field Summary
FieldsFields inherited from class org.oscim.utils.pool.SyncPool
mClearItems, mFill, mMaxFill, mPool -
Constructor Summary
ConstructorsConstructorDescriptionTexturePool(int maxFill) TexturePool(int maxFill, int width, int height, boolean mipmap) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected TextureItemCreates the item.protected voidget()Retrieve a TextureItem from pool.protected voidRelease 'list' to pool.protected void
-
Field Details
-
mTexCnt
protected int mTexCnt
-
-
Constructor Details
-
TexturePool
public TexturePool(int maxFill, int width, int height, boolean mipmap) -
TexturePool
public TexturePool(int maxFill)
-
-
Method Details
-
releaseAll
Description copied from class:SyncPoolRelease 'list' to pool. Usage list = pool.releaseAll(list), to ensure to not keep a reference to list!- Overrides:
releaseAllin classSyncPool<TextureItem>
-
get
Retrieve a TextureItem from pool.- Overrides:
getin classSyncPool<TextureItem>- Returns:
- the item
-
get
-
createItem
Description copied from class:SyncPoolCreates the item. To be implemented by subclass.- Specified by:
createItemin classSyncPool<TextureItem>- Returns:
- the item
-
clearItem
- Overrides:
clearItemin classSyncPool<TextureItem>- Parameters:
t- set initial state- Returns:
- 'true' when item should be added back to pool, 'false' when freeItem should be called.
-
freeItem
- Overrides:
freeItemin classSyncPool<TextureItem>- Parameters:
t- release resources
-
releaseBitmap
-
initTexture
-