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

Unified Diff: src/core/SkScaledImageCache.cpp

Issue 22292004: revise SkTDynamicHash and add unit tests (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 months 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
« no previous file with comments | « gyp/tests.gyp ('k') | src/core/SkTDynamicHash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkScaledImageCache.cpp
diff --git a/src/core/SkScaledImageCache.cpp b/src/core/SkScaledImageCache.cpp
index 45c7344007ef845bb58901a43515fe28957d86c2..75dac7859829aca5677e2803a251886f381b1ba2 100644
--- a/src/core/SkScaledImageCache.cpp
+++ b/src/core/SkScaledImageCache.cpp
@@ -250,7 +250,7 @@ SkScaledImageCache::ID* SkScaledImageCache::addAndLock(const SkBitmap& orig,
SkASSERT(1 == rec->fLockCount);
#ifdef USE_HASH
- fHash->add(key, rec);
+ fHash->add(rec);
#endif
// We may (now) be overbudget, so see if we need to purge something.
@@ -270,7 +270,7 @@ SkScaledImageCache::ID* SkScaledImageCache::addAndLockMip(const SkBitmap& orig,
SkASSERT(1 == rec->fLockCount);
#ifdef USE_HASH
- fHash->add(key, rec);
+ fHash->add(rec);
#endif
// We may (now) be overbudget, so see if we need to purge something.
« no previous file with comments | « gyp/tests.gyp ('k') | src/core/SkTDynamicHash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698