aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/effects/SkBlurMaskFilter.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-08-10 16:25:25 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-10 16:25:25 -0700
commit27cdd947903a4262bb483e7d35153358f4541bf8 (patch)
tree15649ca5e140b28b7dcc4831450142062b000639 /include/effects/SkBlurMaskFilter.h
parent2ab9057b31ee92060b9769ea1adfada51c11c010 (diff)
Implement GPU occluded blur mask filter
Spawned off: https://codereview.chromium.org/2214163003/ (Minor clean up related to blur mask filters) GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2201133002 Review-Url: https://codereview.chromium.org/2201133002
Diffstat (limited to 'include/effects/SkBlurMaskFilter.h')
-rw-r--r--include/effects/SkBlurMaskFilter.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/include/effects/SkBlurMaskFilter.h b/include/effects/SkBlurMaskFilter.h
index 4b037e70cd..12eec6052f 100644
--- a/include/effects/SkBlurMaskFilter.h
+++ b/include/effects/SkBlurMaskFilter.h
@@ -32,13 +32,21 @@ public:
};
/** Create a blur maskfilter.
- * @param style The SkBlurStyle to use
- * @param sigma Standard deviation of the Gaussian blur to apply. Must be > 0.
- * @param flags Flags to use - defaults to none
+ * @param style The SkBlurStyle to use
+ * @param sigma Standard deviation of the Gaussian blur to apply. Must be > 0.
+ * @param occluder The rect for which no pixels need be drawn (b.c. it will be overdrawn
+ * with some opaque object. This is just a hint which backends are free to
+ * ignore.
+ * @param flags Flags to use - defaults to none
* @return The new blur maskfilter
*/
static sk_sp<SkMaskFilter> Make(SkBlurStyle style, SkScalar sigma,
- uint32_t flags = kNone_BlurFlag);
+ const SkRect& occluder, uint32_t flags = kNone_BlurFlag);
+
+ static sk_sp<SkMaskFilter> Make(SkBlurStyle style, SkScalar sigma,
+ uint32_t flags = kNone_BlurFlag) {
+ return Make(style, sigma, SkRect::MakeEmpty(), flags);
+ }
/** Create an emboss maskfilter
@param blurSigma standard deviation of the Gaussian blur to apply