diff options
author | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-04 20:29:03 +0000 |
---|---|---|
committer | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-04 20:29:03 +0000 |
commit | 7c7292c6071898d73dc935c3b66b9816183806f0 (patch) | |
tree | 188d85e4d1ff6f3148b604208cca8629c782d274 /src/effects/SkBlurMask.h | |
parent | f7b62d6ff20074c27660550dbe59155cf6a860b5 (diff) |
Added a new function to directly generate a blurred rectangle analytically.
Added two new microbenchmarks to demonstrate speedup over existing BlurSeparable approach.
Added new GM tests for blurred rectangles.
Review URL: https://codereview.appspot.com/7037050
git-svn-id: http://skia.googlecode.com/svn/trunk@7034 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects/SkBlurMask.h')
-rw-r--r-- | src/effects/SkBlurMask.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/effects/SkBlurMask.h b/src/effects/SkBlurMask.h index cfd7e67bd0..a15dabcf05 100644 --- a/src/effects/SkBlurMask.h +++ b/src/effects/SkBlurMask.h @@ -28,6 +28,10 @@ public: kHigh_Quality //!< three pass box blur (similar to gaussian) }; + static bool BlurRect(SkMask *dst, const SkRect &src, + SkScalar radius, Style style, Quality quality, + SkIPoint *margin = NULL); + static bool Blur(SkMask* dst, const SkMask& src, SkScalar radius, Style style, Quality quality, SkIPoint* margin = NULL); |