diff options
author | Mike Reed <reed@google.com> | 2018-01-23 15:29:32 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-23 21:14:20 +0000 |
commit | 80747ef591ff3c09c2b610eb21258132d1ff4ef5 (patch) | |
tree | e7472d73f966f9400b0e52cb02ad9e8515de32c3 /src/gpu/GrBlurUtils.cpp | |
parent | a7701e032bcc55a73360aa8d1b53ceef566de991 (diff) |
move the guts of SkMaskFilter.h into SkMaskFilterBase.h
Bug: skia:
Change-Id: I29ad0960156562867429542d3cfbf3d639529cab
Reviewed-on: https://skia-review.googlesource.com/98802
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrBlurUtils.cpp')
-rw-r--r-- | src/gpu/GrBlurUtils.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/GrBlurUtils.cpp b/src/gpu/GrBlurUtils.cpp index aff3647f6c..b79a38a884 100644 --- a/src/gpu/GrBlurUtils.cpp +++ b/src/gpu/GrBlurUtils.cpp @@ -17,7 +17,7 @@ #include "GrTextureProxy.h" #include "SkDraw.h" #include "SkGr.h" -#include "SkMaskFilter.h" +#include "SkMaskFilterBase.h" #include "SkPaint.h" #include "SkTLazy.h" @@ -65,7 +65,7 @@ static bool sw_draw_with_mask_filter(GrContext* context, } SkAutoMaskFreeImage autoSrc(srcM.fImage); - if (!filter->filterMask(&dstM, srcM, viewMatrix, nullptr)) { + if (!as_MFB(filter)->filterMask(&dstM, srcM, viewMatrix, nullptr)) { return false; } // this will free-up dstM when we're done (allocated in filterMask()) @@ -144,7 +144,7 @@ static void draw_path_with_mask_filter(GrContext* context, GrPaint&& paint, GrAA aa, const SkMatrix& viewMatrix, - const SkMaskFilter* maskFilter, + const SkMaskFilterBase* maskFilter, const GrStyle& style, const SkPath* path, bool pathIsMutable) { @@ -252,7 +252,7 @@ void GrBlurUtils::drawPathWithMaskFilter(GrContext* context, const GrStyle& style, bool pathIsMutable) { draw_path_with_mask_filter(context, renderTargetContext, clip, std::move(paint), aa, viewMatrix, - mf, style, &path, pathIsMutable); + as_MFB(mf), style, &path, pathIsMutable); } void GrBlurUtils::drawPathWithMaskFilter(GrContext* context, @@ -297,7 +297,7 @@ void GrBlurUtils::drawPathWithMaskFilter(GrContext* context, return; } GrAA aa = GrAA(paint.isAntiAlias()); - SkMaskFilter* mf = paint.getMaskFilter(); + SkMaskFilterBase* mf = as_MFB(paint.getMaskFilter()); if (mf && !mf->hasFragmentProcessor()) { // The MaskFilter wasn't already handled in SkPaintToGrPaint draw_path_with_mask_filter(context, renderTargetContext, clip, std::move(grPaint), aa, |