Fixes cache misses and extra allocations.

Bug #3421454

Change-Id: If4d5c960a7e4c581a9d213073e658284b4e1c497
This commit is contained in:
Romain Guy
2011-02-03 15:06:05 -08:00
parent ef36255f87
commit 2fc941e465
6 changed files with 60 additions and 152 deletions

View File

@ -65,7 +65,6 @@ void PathCache::clearGarbage() {
PathTexture* PathCache::get(SkPath* path, SkPaint* paint) {
PathCacheEntry entry(path, paint);
PathTexture* texture = mCache.get(entry);
if (!texture) {