summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-10-08 18:43:58 -0700
committerRomain Guy <romainguy@google.com>2010-10-08 18:44:56 -0700
commit21b028a44f3e0bd9b0f0432b8b92c45f661d22a4 (patch)
treee337e7e38e6706c4bc9126cfef742521606e6a1d /libs
parent2728f961614a385df1f056fc24803a9f65c90fab (diff)
downloadframeworks_base-21b028a44f3e0bd9b0f0432b8b92c45f661d22a4.zip
frameworks_base-21b028a44f3e0bd9b0f0432b8b92c45f661d22a4.tar.gz
frameworks_base-21b028a44f3e0bd9b0f0432b8b92c45f661d22a4.tar.bz2
Move GenerationCache to the utils directory.
Change-Id: I210ffa8f1d76a102bb7d971c649c20a74d03fbe6
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/GradientCache.h2
-rw-r--r--libs/hwui/PatchCache.cpp4
-rw-r--r--libs/hwui/PathCache.h2
-rw-r--r--libs/hwui/TextDropShadowCache.h2
-rw-r--r--libs/hwui/TextureCache.h2
-rw-r--r--libs/hwui/utils/GenerationCache.h (renamed from libs/hwui/GenerationCache.h)0
6 files changed, 6 insertions, 6 deletions
diff --git a/libs/hwui/GradientCache.h b/libs/hwui/GradientCache.h
index c829fd4..48877f6 100644
--- a/libs/hwui/GradientCache.h
+++ b/libs/hwui/GradientCache.h
@@ -20,7 +20,7 @@
#include <SkShader.h>
#include "Texture.h"
-#include "GenerationCache.h"
+#include "utils/GenerationCache.h"
namespace android {
namespace uirenderer {
diff --git a/libs/hwui/PatchCache.cpp b/libs/hwui/PatchCache.cpp
index 4dc1a4d..eca5e4d 100644
--- a/libs/hwui/PatchCache.cpp
+++ b/libs/hwui/PatchCache.cpp
@@ -73,8 +73,8 @@ Patch* PatchCache::get(const float bitmapWidth, const float bitmapHeight,
pixelWidth, pixelHeight, xDivs, yDivs, width, height);
if (mCache.size() >= mMaxEntries) {
- delete mCache.valueAt(0);
- mCache.removeItemsAt(0, 1);
+ delete mCache.valueAt(mCache.size() - 1);
+ mCache.removeItemsAt(mCache.size() - 1, 1);
}
mCache.add(description, mesh);
diff --git a/libs/hwui/PathCache.h b/libs/hwui/PathCache.h
index bde0e7d..596dfab 100644
--- a/libs/hwui/PathCache.h
+++ b/libs/hwui/PathCache.h
@@ -22,7 +22,7 @@
#include <SkPath.h>
#include "Texture.h"
-#include "GenerationCache.h"
+#include "utils/GenerationCache.h"
namespace android {
namespace uirenderer {
diff --git a/libs/hwui/TextDropShadowCache.h b/libs/hwui/TextDropShadowCache.h
index b65d62a..16e2814 100644
--- a/libs/hwui/TextDropShadowCache.h
+++ b/libs/hwui/TextDropShadowCache.h
@@ -21,7 +21,7 @@
#include <SkPaint.h>
-#include "GenerationCache.h"
+#include "utils/GenerationCache.h"
#include "FontRenderer.h"
#include "Texture.h"
diff --git a/libs/hwui/TextureCache.h b/libs/hwui/TextureCache.h
index 34c5455..467e851 100644
--- a/libs/hwui/TextureCache.h
+++ b/libs/hwui/TextureCache.h
@@ -20,7 +20,7 @@
#include <SkBitmap.h>
#include "Texture.h"
-#include "GenerationCache.h"
+#include "utils/GenerationCache.h"
namespace android {
namespace uirenderer {
diff --git a/libs/hwui/GenerationCache.h b/libs/hwui/utils/GenerationCache.h
index 5cea30f..5cea30f 100644
--- a/libs/hwui/GenerationCache.h
+++ b/libs/hwui/utils/GenerationCache.h