public class NvgLoadableImageReferenceManager
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
NvgLoadableImageReferenceManager()
Used to create image reference manager.
|
protected |
NvgLoadableImageReferenceManager(boolean expireCleanupEnabled)
Used to create image reference manager.
|
protected |
NvgLoadableImageReferenceManager(int duration)
Used to create image reference manager.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Used to destroy image reference manager.
|
int |
getImageReference(LoadableImage image,
long context)
Used to obtain image reference by image.
|
protected void |
removeOldImages(long context)
Used to remove old images.
|
protected NvgLoadableImageReferenceManager()
protected NvgLoadableImageReferenceManager(boolean expireCleanupEnabled)
expireCleanupEnabled
- the expire cleanup enabled.protected NvgLoadableImageReferenceManager(int duration)
duration
- the duration after which cache should clean unused references.protected void removeOldImages(long context)
context
- nanovg context.public int getImageReference(LoadableImage image, long context)
image
- image to get reference.context
- nanovg context.public void destroy()