Use LruCache instead of GenerationCache in libhwui
Change-Id: Ic26ddc7151eb5462bcd243b21daf7187ed6d3bec
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 @@
void init();
- GenerationCache<SkBitmap*, Texture*> mCache;
+ LruCache<SkBitmap*, Texture*> mCache;
uint32_t mSize;
uint32_t mMaxSize;