public class RenderResourceCache extends LruMemoryCache<java.lang.Object,RenderResource> implements Retriever.Callback<ImageSource,ImageOptions,Bitmap>
Constructor and Description |
---|
RenderResourceCache(int capacity) |
RenderResourceCache(int capacity,
int lowWater) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Resources |
getResources() |
boolean |
handleMessage(Message msg) |
static int |
recommendedCapacity(Context context) |
void |
releaseEvictedResources(DrawContext dc) |
void |
retrievalFailed(Retriever<ImageSource,ImageOptions,Bitmap> retriever,
ImageSource key,
java.lang.Throwable ex) |
void |
retrievalRejected(Retriever<ImageSource,ImageOptions,Bitmap> retriever,
ImageSource key) |
void |
retrievalSucceeded(Retriever<ImageSource,ImageOptions,Bitmap> retriever,
ImageSource key,
ImageOptions options,
Bitmap value) |
Texture |
retrieveTexture(ImageSource imageSource,
ImageOptions options) |
void |
setResources(Resources res) |
containsKey, get, getCapacity, getEntryCount, getUsedCapacity, put, remove, trimToAge
public RenderResourceCache(int capacity)
public RenderResourceCache(int capacity, int lowWater)
public static int recommendedCapacity(Context context)
public Resources getResources()
public void setResources(Resources res)
public void clear()
clear
in class LruMemoryCache<java.lang.Object,RenderResource>
public void releaseEvictedResources(DrawContext dc)
public Texture retrieveTexture(ImageSource imageSource, ImageOptions options)
public void retrievalSucceeded(Retriever<ImageSource,ImageOptions,Bitmap> retriever, ImageSource key, ImageOptions options, Bitmap value)
retrievalSucceeded
in interface Retriever.Callback<ImageSource,ImageOptions,Bitmap>
public void retrievalFailed(Retriever<ImageSource,ImageOptions,Bitmap> retriever, ImageSource key, java.lang.Throwable ex)
retrievalFailed
in interface Retriever.Callback<ImageSource,ImageOptions,Bitmap>
public void retrievalRejected(Retriever<ImageSource,ImageOptions,Bitmap> retriever, ImageSource key)
retrievalRejected
in interface Retriever.Callback<ImageSource,ImageOptions,Bitmap>
public boolean handleMessage(Message msg)