summaryrefslogtreecommitdiffstats
path: root/libs/hwui/TextureCache.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-11-28 17:35:51 -0800
committerRomain Guy <romainguy@google.com>2012-11-29 11:44:02 -0800
commit059e12ccd20f5c249724a8362d6bac325334ea76 (patch)
tree7b15fa6bc6d2963715ea298a51cca3909c1e50c9 /libs/hwui/TextureCache.h
parentc653df46436a796556da2633f90353900344ce39 (diff)
downloadframeworks_base-059e12ccd20f5c249724a8362d6bac325334ea76.zip
frameworks_base-059e12ccd20f5c249724a8362d6bac325334ea76.tar.gz
frameworks_base-059e12ccd20f5c249724a8362d6bac325334ea76.tar.bz2
Use LruCache instead of GenerationCache in libhwui
Change-Id: Ic26ddc7151eb5462bcd243b21daf7187ed6d3bec
Diffstat (limited to 'libs/hwui/TextureCache.h')
-rw-r--r--libs/hwui/TextureCache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/TextureCache.h b/libs/hwui/TextureCache.h
index 31a2e3d..80bb22e 100644
--- a/libs/hwui/TextureCache.h
+++ b/libs/hwui/TextureCache.h
@@ -19,12 +19,12 @@
#include <SkBitmap.h>
+#include <utils/LruCache.h>
#include <utils/Mutex.h>
#include <utils/Vector.h>
#include "Debug.h"
#include "Texture.h"
-#include "utils/GenerationCache.h"
namespace android {
namespace uirenderer {
@@ -130,7 +130,7 @@ private:
void init();
- GenerationCache<SkBitmap*, Texture*> mCache;
+ LruCache<SkBitmap*, Texture*> mCache;
uint32_t mSize;
uint32_t mMaxSize;