diff options
| author | 2011-11-14 18:28:59 -0800 | |
|---|---|---|
| committer | 2011-11-14 18:28:59 -0800 | |
| commit | bf677de46a039e07038511909576bfbf4406f7fd (patch) | |
| tree | cb2243d4b75f084b01a65c6e9cf6c497683b2775 /libs/hwui/PathCache.cpp | |
| parent | a4e3fe22762116b1bb6f40b354febf7bd2eec44d (diff) | |
| parent | d9e688cab3015d858110fb8240cf7378c6befd82 (diff) | |
Merge "Clean up GenerationCache."
Diffstat (limited to 'libs/hwui/PathCache.cpp')
| -rw-r--r-- | libs/hwui/PathCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/PathCache.cpp b/libs/hwui/PathCache.cpp index 367c6275c711..e893f7a95adb 100644 --- a/libs/hwui/PathCache.cpp +++ b/libs/hwui/PathCache.cpp @@ -34,8 +34,8 @@ PathCache::PathCache(): ShapeCache<PathCacheEntry>("path", void PathCache::remove(SkPath* path) { // TODO: Linear search... - Vector<uint32_t> pathsToRemove; - for (uint32_t i = 0; i < mCache.size(); i++) { + Vector<size_t> pathsToRemove; + for (size_t i = 0; i < mCache.size(); i++) { if (mCache.getKeyAt(i).path == path) { pathsToRemove.push(i); removeTexture(mCache.getValueAt(i)); |