diff options
| author | Romain Guy <romainguy@google.com> | 2010-10-08 18:43:58 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@google.com> | 2010-10-08 18:44:56 -0700 |
| commit | 21b028a44f3e0bd9b0f0432b8b92c45f661d22a4 (patch) | |
| tree | e337e7e38e6706c4bc9126cfef742521606e6a1d /libs/hwui/PatchCache.cpp | |
| parent | 2728f961614a385df1f056fc24803a9f65c90fab (diff) | |
| download | frameworks_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/hwui/PatchCache.cpp')
| -rw-r--r-- | libs/hwui/PatchCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
