diff options
author | senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-20 17:09:40 +0000 |
---|---|---|
committer | senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-20 17:09:40 +0000 |
commit | 336b4da6b0d20f27f9980b03415354a2f0698e18 (patch) | |
tree | 939507dc69e501a9566513d8ff931cd037b6cc01 /include/effects | |
parent | 2cda3871cbe50ce8047ef035569ac8e962f09d4e (diff) |
Separable mask blurs: Add compile-time flag. Fix reversed offsets in asymmetrical blurs (this bug cancels itself out, but I thought it might be confusing for future readers). Use correct stride in asymmetrical blurs (this is a real bug).
Review URL: https://codereview.appspot.com/6782089
git-svn-id: http://skia.googlecode.com/svn/trunk@6508 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/effects')
-rw-r--r-- | include/effects/SkBlurDrawLooper.h | 4 | ||||
-rw-r--r-- | include/effects/SkBlurMaskFilter.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/effects/SkBlurDrawLooper.h b/include/effects/SkBlurDrawLooper.h index fa730e382c..eeed1b6c20 100644 --- a/include/effects/SkBlurDrawLooper.h +++ b/include/effects/SkBlurDrawLooper.h @@ -31,8 +31,10 @@ public: kIgnoreTransform_BlurFlag = 0x01, kOverrideColor_BlurFlag = 0x02, kHighQuality_BlurFlag = 0x04, + /** faster, but may discretize the radius */ + kCoarseRadius_BlurFlag = 0x08, /** mask for all blur flags */ - kAll_BlurFlag = 0x07 + kAll_BlurFlag = 0x0F }; SkBlurDrawLooper(SkScalar radius, SkScalar dx, SkScalar dy, SkColor color, diff --git a/include/effects/SkBlurMaskFilter.h b/include/effects/SkBlurMaskFilter.h index 2ab321aa7a..e957a9ddd4 100644 --- a/include/effects/SkBlurMaskFilter.h +++ b/include/effects/SkBlurMaskFilter.h @@ -29,8 +29,10 @@ public: kIgnoreTransform_BlurFlag = 0x01, /** Use a smother, higher qulity blur algorithm */ kHighQuality_BlurFlag = 0x02, + /** Do faster blurs by rounding the radius to a set of sub-integer values */ + kCoarseRadius_BlurFlag = 0x04, /** mask for all blur flags */ - kAll_BlurFlag = 0x03 + kAll_BlurFlag = 0x07 }; /** Create a blur maskfilter. |