summaryrefslogtreecommitdiff
path: root/libs/hwui/TextureCache.h
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2010-07-07 13:06:26 -0700
committer Romain Guy <romainguy@google.com> 2010-07-07 13:06:26 -0700
commit5f0c6a483900f3989f4d2a8f913cf5b6a9777d03 (patch)
treecd0898b027dab942753874a070c403ca9b88e4aa /libs/hwui/TextureCache.h
parentc832baa107f36740e462c83e7525ba2e9f01f086 (diff)
Optimize FBO cache.
This change introduces a new generational cache called GenerationMultiCache that can store several values with the same key. This can be used to use multiple layers of the same size at the same time, without recreating them over and over again. Change-Id: I425466a20908b862c5f464a0f9e582ec18cbd7ac
Diffstat (limited to 'libs/hwui/TextureCache.h')
-rw-r--r--libs/hwui/TextureCache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/TextureCache.h b/libs/hwui/TextureCache.h
index bed11915c581..a6208765be4f 100644
--- a/libs/hwui/TextureCache.h
+++ b/libs/hwui/TextureCache.h
@@ -78,7 +78,7 @@ private:
*/
void generateTexture(SkBitmap* bitmap, Texture* texture, bool regenerate = false);
- GenerationCache<SkBitmap*, Texture*> mCache;
+ GenerationSingleCache<SkBitmap*, Texture*> mCache;
uint32_t mSize;
uint32_t mMaxSize;