diff options
author | senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-29 17:09:27 +0000 |
---|---|---|
committer | senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-29 17:09:27 +0000 |
commit | 91f489a65d436d36c7fe580af2775cd0cd13c8d2 (patch) | |
tree | 99dc1569121ee3cf78b80768788d3aeafc9e19ad /include/effects | |
parent | f4d1b3911831d2111a351b2742b3a94a9d17f92e (diff) |
Modify the blur bench to add tests for high-quality blurs, and large non-integer blurs. Change the Coarse flag (which just turns on separable blurs) to an #ifdef, since separable is no longer just Coarse. (This #ifdef will hopefully be shortlived, once Chrome has switched).
The separable blur algorithm gives +45% on SampleBlur, +84% on SampleBigBlur, +31% on TheVerge, +35 to +85% on blurbench in HQ (depending on size), +8 to +35% in low quality. (All of these on 32bit MacPro).
Review URL: https://codereview.appspot.com/6851117
git-svn-id: http://skia.googlecode.com/svn/trunk@6601 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, 2 insertions, 6 deletions
diff --git a/include/effects/SkBlurDrawLooper.h b/include/effects/SkBlurDrawLooper.h index eeed1b6c20..c4107612cb 100644 --- a/include/effects/SkBlurDrawLooper.h +++ b/include/effects/SkBlurDrawLooper.h @@ -31,10 +31,8 @@ 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 = 0x0F + kAll_BlurFlag = 0x07 }; SkBlurDrawLooper(SkScalar radius, SkScalar dx, SkScalar dy, SkColor color, diff --git a/include/effects/SkBlurMaskFilter.h b/include/effects/SkBlurMaskFilter.h index e957a9ddd4..2ab321aa7a 100644 --- a/include/effects/SkBlurMaskFilter.h +++ b/include/effects/SkBlurMaskFilter.h @@ -29,10 +29,8 @@ 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 = 0x07 + kAll_BlurFlag = 0x03 }; /** Create a blur maskfilter. |