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

Unified Diff: src/core/SkMaskCache.h

Issue 729463002: Cache blur mask for rects which can not break into nine-patch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix edge artifacts Created 6 years 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/SkMaskCache.cpp » ('j') | src/core/SkMaskFilter.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkMaskCache.h
diff --git a/src/core/SkMaskCache.h b/src/core/SkMaskCache.h
index f98387b2067dd03745ba2eb9ffaf5cc49d56ff5c..fed65932ec188e701fac29166a037460d5f55cfb 100644
--- a/src/core/SkMaskCache.h
+++ b/src/core/SkMaskCache.h
@@ -39,6 +39,15 @@ public:
static void Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality,
const SkRect rects[], int count, const SkMask& mask, SkCachedData* data,
SkResourceCache* localCache = NULL);
+
reed1 2014/12/22 21:38:15 Why do these take their parameters in a slightly d
qiankun 2014/12/23 10:54:32 Modify the name and re-order parameters for FindAn
+ static bool FindCachedRRect(SkMask* mask, SkScalar sigma, SkBlurStyle style,
+ SkBlurQuality quality, const SkRRect& rrect);
+ static void AddCachedRRect(const SkMask& mask, SkScalar sigma, SkBlurStyle style,
+ SkBlurQuality quality, const SkRRect& rrect);
+ static bool FindCachedRects(SkMask* mask, SkScalar sigma, SkBlurStyle style,
+ SkBlurQuality quality, const SkRect rects[], int count);
+ static void AddCachedRects(const SkMask& mask, SkScalar sigma, SkBlurStyle style,
+ SkBlurQuality quality, const SkRect rects[], int count);
};
#endif
« no previous file with comments | « no previous file | src/core/SkMaskCache.cpp » ('j') | src/core/SkMaskFilter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698