diff options
author | Matt Sarett <msarett@google.com> | 2017-03-23 16:23:38 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-23 20:58:30 +0000 |
commit | f160ad4d76e9e7ec21c48f92ba05c16ffec566b4 (patch) | |
tree | c4974cf338b6d2e29473194ad724c6b6cb7da429 /gm | |
parent | 9827256c8a4fb10e58e68393b5d8d0b5cca71d70 (diff) |
SkBlurDrawLooper: Start by deleting flags
Android is the only user of this looper. They never pass any flags.
BUG=skia:
Change-Id: I87b02ef7bc0ed94bca82637d60adddf34575a3e6
Reviewed-on: https://skia-review.googlesource.com/10057
Commit-Queue: Matt Sarett <msarett@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'gm')
-rw-r--r-- | gm/circles.cpp | 5 | ||||
-rw-r--r-- | gm/rects.cpp | 5 | ||||
-rw-r--r-- | gm/shadows.cpp | 23 |
3 files changed, 7 insertions, 26 deletions
diff --git a/gm/circles.cpp b/gm/circles.cpp index 53ca5ddb1b..5c53fe2b0e 100644 --- a/gm/circles.cpp +++ b/gm/circles.cpp @@ -77,10 +77,7 @@ protected: p.setAntiAlias(true); p.setLooper(SkBlurDrawLooper::Make(SK_ColorBLUE, SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)), - SkIntToScalar(5), SkIntToScalar(10), - SkBlurDrawLooper::kIgnoreTransform_BlurFlag | - SkBlurDrawLooper::kOverrideColor_BlurFlag | - SkBlurDrawLooper::kHighQuality_BlurFlag)); + SkIntToScalar(5), SkIntToScalar(10))); fPaints.push_back(p); } diff --git a/gm/rects.cpp b/gm/rects.cpp index 28649b21c5..d8c2fd9a42 100644 --- a/gm/rects.cpp +++ b/gm/rects.cpp @@ -93,10 +93,7 @@ protected: p.setAntiAlias(true); p.setLooper(SkBlurDrawLooper::Make(SK_ColorWHITE, SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)), - SkIntToScalar(5), SkIntToScalar(10), - SkBlurDrawLooper::kIgnoreTransform_BlurFlag | - SkBlurDrawLooper::kOverrideColor_BlurFlag | - SkBlurDrawLooper::kHighQuality_BlurFlag)); + SkIntToScalar(5), SkIntToScalar(10))); fPaints.push_back(p); } diff --git a/gm/shadows.cpp b/gm/shadows.cpp index e550a8a6fd..5dba270c66 100644 --- a/gm/shadows.cpp +++ b/gm/shadows.cpp @@ -60,32 +60,19 @@ protected: sk_sp<SkDrawLooper> shadowLoopers[] = { SkBlurDrawLooper::Make(SK_ColorBLUE, SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)), - SkIntToScalar(5), SkIntToScalar(10), - SkBlurDrawLooper::kIgnoreTransform_BlurFlag | - SkBlurDrawLooper::kOverrideColor_BlurFlag | - SkBlurDrawLooper::kHighQuality_BlurFlag), + SkIntToScalar(5), SkIntToScalar(10)), SkBlurDrawLooper::Make(SK_ColorBLUE, SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(10)), - SkIntToScalar(5), SkIntToScalar(10), - SkBlurDrawLooper::kIgnoreTransform_BlurFlag | - SkBlurDrawLooper::kOverrideColor_BlurFlag), + SkIntToScalar(5), SkIntToScalar(10)), SkBlurDrawLooper::Make(SK_ColorBLACK, SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5)), SkIntToScalar(5), - SkIntToScalar(10), - SkBlurDrawLooper::kIgnoreTransform_BlurFlag | - SkBlurDrawLooper::kHighQuality_BlurFlag), + SkIntToScalar(10)), SkBlurDrawLooper::Make(0x7FFF0000, SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(5)), - SkIntToScalar(-5), SkIntToScalar(-10), - SkBlurDrawLooper::kIgnoreTransform_BlurFlag | - SkBlurDrawLooper::kOverrideColor_BlurFlag | - SkBlurDrawLooper::kHighQuality_BlurFlag), + SkIntToScalar(-5), SkIntToScalar(-10)), SkBlurDrawLooper::Make(SK_ColorBLACK, SkIntToScalar(0), - SkIntToScalar(5), SkIntToScalar(5), - SkBlurDrawLooper::kIgnoreTransform_BlurFlag | - SkBlurDrawLooper::kOverrideColor_BlurFlag | - SkBlurDrawLooper::kHighQuality_BlurFlag), + SkIntToScalar(5), SkIntToScalar(5)), }; constexpr struct { |