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

Unified Diff: src/core/SkScaledImageCache.cpp

Issue 471473002: Optimize CSS box-shadow performance (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: based on SkBitmapCache Created 6 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
Index: src/core/SkScaledImageCache.cpp
diff --git a/src/core/SkScaledImageCache.cpp b/src/core/SkScaledImageCache.cpp
index 9e672fe371da5790c7ae744da2c730c502254ece..25c3abd0cce682d9ea517494d8fbe53419a9ecbd 100644
--- a/src/core/SkScaledImageCache.cpp
+++ b/src/core/SkScaledImageCache.cpp
@@ -9,7 +9,6 @@
#include "SkScaledImageCache.h"
#include "SkMipMap.h"
#include "SkPixelRef.h"
-#include "SkRect.h"
// This can be defined by the caller's build system
//#define SK_USE_DISCARDABLE_SCALEDIMAGECACHE
@@ -97,7 +96,7 @@ class SkScaledImageCache::Hash :
static inline SkScaledImageCache::Rec* find_rec_in_list(
SkScaledImageCache::Rec* head, const Key & key) {
SkScaledImageCache::Rec* rec = head;
- while ((rec != NULL) && (rec->fKey != key)) {
+ while ((rec != NULL) && (*rec->fKey != key)) {
rec = rec->fNext;
}
return rec;

Powered by Google App Engine
This is Rietveld 408576698