aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrBlurUtils.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2016-10-20 09:40:55 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-10-20 14:06:52 +0000
commita29a956d0e27819b97592404ae1ec6cc8e7b1045 (patch)
tree1e5d884a5d0f7f881a2e8fd5579672edd80fc2a9 /src/gpu/GrBlurUtils.cpp
parente1d6ff172e219d3be61949b0e44091f4c85de2ad (diff)
Add SkRRectsGaussianEdgeMaskFilter
SkRRectsGaussianEdgeShader will be removed once the usage of the MaskFilter flavor has been propagated to Android I will complete the raster implementation in a follow up CL. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3632 Change-Id: I42470b17308582b040a5db1a7283c3d717405345 Reviewed-on: https://skia-review.googlesource.com/3632 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrBlurUtils.cpp')
-rw-r--r--src/gpu/GrBlurUtils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/GrBlurUtils.cpp b/src/gpu/GrBlurUtils.cpp
index 5f575e3c84..a167101c8c 100644
--- a/src/gpu/GrBlurUtils.cpp
+++ b/src/gpu/GrBlurUtils.cpp
@@ -285,9 +285,11 @@ void GrBlurUtils::drawPathWithMaskFilter(GrContext* context,
return;
}
- if (paint.getMaskFilter()) {
+ SkMaskFilter* mf = paint.getMaskFilter();
+ if (mf && !mf->asFragmentProcessor(nullptr, nullptr, viewMatrix)) {
+ // The MaskFilter wasn't already handled in SkPaintToGrPaint
draw_path_with_mask_filter(context, drawContext, clip, &grPaint, viewMatrix,
- paint.getMaskFilter(), style,
+ mf, style,
path, pathIsMutable);
} else {
drawContext->drawPath(clip, grPaint, viewMatrix, *path, style);