summaryrefslogtreecommitdiff
path: root/libs/hwui/TextureCache.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-07-30 17:38:35 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-30 17:38:35 +0000
commitcef25e5319e4f76682dd63a3c01bfacb19aeeb51 (patch)
tree9504d6b0708f8e3c06158ef597efded8dc93bfaf /libs/hwui/TextureCache.cpp
parentba36e0c2d1f6377671b493a5ae121140c002ce0f (diff)
parent272a685f17cc4828257e521a6f62b7b17870f75e (diff)
Merge "Replace most usages of utils/Vector.h"
Diffstat (limited to 'libs/hwui/TextureCache.cpp')
-rw-r--r--libs/hwui/TextureCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/TextureCache.cpp b/libs/hwui/TextureCache.cpp
index c4467f1856ff..16f6f4ba4bb6 100644
--- a/libs/hwui/TextureCache.cpp
+++ b/libs/hwui/TextureCache.cpp
@@ -216,14 +216,14 @@ Texture* TextureCache::get(const SkBitmap* bitmap, AtlasUsageType atlasUsageType
void TextureCache::releaseTexture(uint32_t pixelRefStableID) {
Mutex::Autolock _l(mLock);
- mGarbage.push(pixelRefStableID);
+ mGarbage.push_back(pixelRefStableID);
}
void TextureCache::clearGarbage() {
Mutex::Autolock _l(mLock);
size_t count = mGarbage.size();
for (size_t i = 0; i < count; i++) {
- uint32_t pixelRefId = mGarbage.itemAt(i);
+ uint32_t pixelRefId = mGarbage[i];
mCache.remove(pixelRefId);
}
mGarbage.clear();