Implement Gaussian blurs for images. The caller creates an an
authorsenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 9 Nov 2011 16:05:58 +0000 (16:05 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 9 Nov 2011 16:05:58 +0000 (16:05 +0000)
commit60014ca38710d3fc265f4376b05c0fefd0e044cf
treee8d3a0d9228caccd4e0f704175f4340dc4302293
parent82c7bd8f25682fcacfeea12ed899976504a767ff
Implement Gaussian blurs for images.  The caller creates an an
SkBlurImageFilter, sets it on an SkPaint, passes that paint to saveLayer(),
draws the primitives which are to be blurred, then calls restore(), which
applies the blur.  The blurs have separate sizes in the horizontal and vertical
direction.  This feature is GPU-only for now.

NB:  Due to the clipping change, there are slight pixel differences on the
blurs_gpu and shadows_gpu tests, so those will require rebaselining on all
platforms, as will some of the WebKit layout tests (TBD).

Review URL:  http://codereview.appspot.com/5322068/

git-svn-id: http://skia.googlecode.com/svn/trunk@2643 2bbb7eff-a529-9590-31e7-b0007b416f81
gm/imageblur.cpp [new file with mode: 0644]
gyp/effects.gyp
gyp/gmslides.gypi
include/effects/SkBlurImageFilter.h [new file with mode: 0644]
include/gpu/GrConfig.h
src/effects/SkBlurImageFilter.cpp [new file with mode: 0644]
src/gpu/GrContext.cpp
src/gpu/SkGpuDevice.cpp