Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: src/core/SkScaledImageCache.cpp

Issue 91453002: Speed up GrResourceCache add and lookup by using TDynamicHash (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/core/SkScaledImageCache.cpp
diff --git a/src/core/SkScaledImageCache.cpp b/src/core/SkScaledImageCache.cpp
index ea29843c9217984bd4f7c31e7da050edad901286..10e8f62217d6037bdb4ffd2c53331474a139652b 100644
--- a/src/core/SkScaledImageCache.cpp
+++ b/src/core/SkScaledImageCache.cpp
@@ -371,7 +371,7 @@ void SkScaledImageCache::purgeAsNeeded() {
bytesUsed -= used;
this->detach(rec);
#ifdef USE_HASH
- fHash->remove(rec->fKey);
+ fHash->remove(rec);
#endif
SkDELETE(rec);
« no previous file with comments | « src/core/SkPictureFlat.h ('k') | src/core/SkTDynamicHash.h » ('j') | src/core/SkTDynamicHash.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698