From d9e688cab3015d858110fb8240cf7378c6befd82 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Fri, 11 Nov 2011 15:40:13 -0800 Subject: Clean up GenerationCache. Use const references to keys and values where appropriate to avoid copying them unnecessarily. Deleted some dead code. Simplified a few pieces that were doing unnecessary redundant work. Change-Id: Ib2145b7094a40db2d679e05dafe050fe1e87b846 --- libs/hwui/PathCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/hwui/PathCache.cpp') 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("path", void PathCache::remove(SkPath* path) { // TODO: Linear search... - Vector pathsToRemove; - for (uint32_t i = 0; i < mCache.size(); i++) { + Vector pathsToRemove; + for (size_t i = 0; i < mCache.size(); i++) { if (mCache.getKeyAt(i).path == path) { pathsToRemove.push(i); removeTexture(mCache.getValueAt(i)); -- cgit v1.2.3-59-g8ed1b