diff options
author | John Reck <jreck@google.com> | 2015-07-30 17:38:35 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-30 17:38:35 +0000 |
commit | cef25e5319e4f76682dd63a3c01bfacb19aeeb51 (patch) | |
tree | 9504d6b0708f8e3c06158ef597efded8dc93bfaf /libs/hwui/PathCache.cpp | |
parent | ba36e0c2d1f6377671b493a5ae121140c002ce0f (diff) | |
parent | 272a685f17cc4828257e521a6f62b7b17870f75e (diff) |
Merge "Replace most usages of utils/Vector.h"
Diffstat (limited to 'libs/hwui/PathCache.cpp')
-rw-r--r-- | libs/hwui/PathCache.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/hwui/PathCache.cpp b/libs/hwui/PathCache.cpp index e36f5f17d29c..f503e5d6e8ba 100644 --- a/libs/hwui/PathCache.cpp +++ b/libs/hwui/PathCache.cpp @@ -338,7 +338,7 @@ void PathCache::PathProcessor::onProcess(const sp<Task<SkBitmap*> >& task) { void PathCache::removeDeferred(const SkPath* path) { Mutex::Autolock l(mLock); - mGarbage.push(path->getGenerationID()); + mGarbage.push_back(path->getGenerationID()); } void PathCache::clearGarbage() { @@ -346,10 +346,7 @@ void PathCache::clearGarbage() { { // scope for the mutex Mutex::Autolock l(mLock); - size_t count = mGarbage.size(); - for (size_t i = 0; i < count; i++) { - const uint32_t generationID = mGarbage.itemAt(i); - + for (const uint32_t generationID : mGarbage) { LruCache<PathDescription, PathTexture*>::Iterator iter(mCache); while (iter.next()) { const PathDescription& key = iter.key(); |