diff options
author | Mike Reed <reed@google.com> | 2018-03-14 13:01:17 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-14 17:27:36 +0000 |
commit | 1be1f8d097da4d4c07b4a1fa16013b0d440e4308 (patch) | |
tree | 0d0d96a7ad0dcf35cc40838c5f0041e43929b384 /samplecode/SampleStrokePath.cpp | |
parent | c29c76aae518a9c368248063e84a96ffe8c75b90 (diff) |
hide SkBlurMaskFilter and SkBlurQuality
SK_SUPPORT_LEGACY_BLURMASKFILTER
Bug: skia:
Change-Id: Ic3e27e08e6e3cd2ffc1cd13b044e197bebc96236
Reviewed-on: https://skia-review.googlesource.com/113940
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'samplecode/SampleStrokePath.cpp')
-rw-r--r-- | samplecode/SampleStrokePath.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleStrokePath.cpp b/samplecode/SampleStrokePath.cpp index ce64155504..d51f24f6fa 100644 --- a/samplecode/SampleStrokePath.cpp +++ b/samplecode/SampleStrokePath.cpp @@ -6,8 +6,8 @@ */ #include "SampleCode.h" #include "SkBlurMask.h" -#include "SkBlurMaskFilter.h" #include "SkCanvas.h" +#include "SkMaskFilter.h" #include "SkParsePath.h" #include "SkPath.h" #include "SkRandom.h" @@ -168,7 +168,7 @@ protected: SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(4)); for (int y = 0; y < 10; y++) { if (x) { - paint.setMaskFilter(SkBlurMaskFilter::Make(gStyle[x - 1], sigma)); + paint.setMaskFilter(SkMaskFilter::MakeBlur(gStyle[x - 1], sigma)); } canvas->drawString("Title Bar", x*SkIntToScalar(100), y*SkIntToScalar(30), paint); sigma *= 0.75f; |