Separable blur: subpixel blurring. We approximate intermediate values of blur for...
authorsenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 16 Nov 2012 17:22:33 +0000 (17:22 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 16 Nov 2012 17:22:33 +0000 (17:22 +0000)
commitc4381309649c5cf338dcf6a7fc8296451a686d6b
treeb5b7ea1f091b646de5826b43ec5d0871813491f0
parent59d968fb29b39cc1f4eb0ac687007c74618c6c1c
Separable blur:  subpixel blurring.  We approximate intermediate values of blur for even kernel sizes by using a kernel of size N offset to the left in the first pass, a kernel of size N offset to the right in the second pass, and a centered kernel of size N + 1 in the third pass.  This required adding support for asymmetrical radii to the box blur.

Since this can only be done in the 3-pass blur for separable blurs, we turn off the optimization that drops to low quality for blurs of < 3 pixels.

Review URL: https://codereview.appspot.com/6843072

git-svn-id: http://skia.googlecode.com/svn/trunk@6464 2bbb7eff-a529-9590-31e7-b0007b416f81
src/effects/SkBlurMask.cpp