Fix image filter crop offsets for GPU path.
authorsenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 3 Feb 2014 22:22:16 +0000 (22:22 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 3 Feb 2014 22:22:16 +0000 (22:22 +0000)
commitaba651c3f1a1657bbe5367c873500e7c60539a3e
treeedea14041d9120ae2c1d1d073017150f58e30071
parent29af1f35d7f9fc7905fd0e78dd2174897492d147
Fix image filter crop offsets for GPU path.

This is the GPU-side version of
https://codereview.chromium.org/112803004/.
Also factored the crop offset unit test into a function, so we can
call it with both CPU & GPU devices.

R=bsalomon@google.com

Review URL: https://codereview.chromium.org/153113003

git-svn-id: http://skia.googlecode.com/svn/trunk@13292 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkImageFilter.cpp
src/effects/SkBlurImageFilter.cpp
tests/ImageFilterTest.cpp