Home | History | Annotate | Download | only in hwui

Lines Matching refs:Texture

25 #include "Texture.h"
47 * A simple LRU texture cache. The cache has a maximum size expressed in bytes.
48 * Any texture added to the cache causing the cache to grow beyond the maximum
49 * allowed size will also cause the oldest texture to be kicked out.
51 class TextureCache: public OnEntryRemoved<SkBitmap*, Texture*> {
61 void operator()(SkBitmap*& bitmap, Texture*& texture);
64 * Returns the texture associated with the specified bitmap. If the texture
65 * cannot be found in the cache, a new texture is generated.
67 Texture* get(SkBitmap* bitmap);
69 * Removes the texture associated with the specified bitmap.
70 * Upon remove the texture is freed.
74 * Removes the texture associated with the specified bitmap. This is meant
103 * Generates the texture from a bitmap into the specified texture structure.
105 * @param regenerate If true, the bitmap data is reuploaded into the texture, but
106 * no new texture is generated.
108 void generateTexture(SkBitmap* bitmap, Texture* texture, bool regenerate = false);
116 GenerationCache<SkBitmap*, Texture*> mCache;