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

Unified Diff: include/core/SkMaskFilter.h

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
« no previous file with comments | « no previous file | src/core/SkBitmapCache.h » ('j') | src/core/SkScaledImageCache.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkMaskFilter.h
diff --git a/include/core/SkMaskFilter.h b/include/core/SkMaskFilter.h
index 51ede4b0ab286cdcdc12c8f32cabb8e7cbf14099..10bde27f69ed0939ace5786ed5bc64031e119f3c 100644
--- a/include/core/SkMaskFilter.h
+++ b/include/core/SkMaskFilter.h
@@ -166,10 +166,15 @@ protected:
kUnimplemented_FilterReturn
};
+ struct SkCachedMask {
+ SkMask fMask;
+ void* fCacheId;
+ };
+
struct NinePatch {
- SkMask fMask; // fBounds must have [0,0] in its top-left
- SkIRect fOuterRect; // width/height must be >= fMask.fBounds'
- SkIPoint fCenter; // identifies center row/col for stretching
+ SkCachedMask fCachedMask; // Bounds must have [0,0] in its top-left
+ SkIRect fOuterRect; // width/height must be >= fMask.fBounds'
+ SkIPoint fCenter; // identifies center row/col for stretching
};
/**
« no previous file with comments | « no previous file | src/core/SkBitmapCache.h » ('j') | src/core/SkScaledImageCache.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698