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

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: store SkMask and SkCachedData in cache Created 6 years, 2 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: include/core/SkMaskFilter.h
diff --git a/include/core/SkMaskFilter.h b/include/core/SkMaskFilter.h
index 026ef40cb1e8f93d8733be6703e9af9ad04a1746..7aa46a5ecff3163f1c730d2d70b5b348b0c8fed8 100644
--- a/include/core/SkMaskFilter.h
+++ b/include/core/SkMaskFilter.h
@@ -11,6 +11,7 @@
#define SkMaskFilter_DEFINED
#include "SkBlurTypes.h"
+#include "SkCachedData.h"
reed1 2014/10/21 21:47:05 SkCachedData.h is a private header, and so cannot
#include "SkFlattenable.h"
#include "SkMask.h"
#include "SkPaint.h"
@@ -59,7 +60,7 @@ public:
@return true if the dst mask was correctly created.
*/
virtual bool filterMask(SkMask* dst, const SkMask& src, const SkMatrix&,
- SkIPoint* margin) const;
+ SkIPoint* margin, SkCachedData** data) const;
reed1 2014/10/21 21:29:49 What is the contract with the caller? If they pass
#if SK_SUPPORT_GPU
/**
@@ -165,9 +166,10 @@ protected:
};
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
+ SkMask fMask; // fBounds must have [0,0] in its top-left
+ SkCachedData* fData;
+ SkIRect fOuterRect; // width/height must be >= fMask.fBounds'
+ SkIPoint fCenter; // identifies center row/col for stretching
};
/**
« no previous file with comments | « gyp/core.gypi ('k') | include/effects/SkEmbossMaskFilter.h » ('j') | src/core/SkMaskCache.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698