Simplify SkGpuBlurUtils.
authorsenorblanco <senorblanco@chromium.org>
Tue, 3 Nov 2015 13:07:43 +0000 (05:07 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 3 Nov 2015 13:07:43 +0000 (05:07 -0800)
commit48343eea6f40a523306069e917ed9a1d6c39434c
treed624e4baa22a3ad75cc3fecba13481c6f9e47857
parent21b766347064837e6b78d600755901aad88cd6e0
Simplify SkGpuBlurUtils.

We compute a lot of { srcRect, dstRect } pairs in this
code, but they're always the same width and height, and
dstRect often has a zero origin. So pass only one or
the other and an offset, where required. Among other
things, this simplifies the code in convolve_gaussian(),
since we only have to 3-patch the dstRect.

BUG=skia:4502

Review URL: https://codereview.chromium.org/1430593006
src/effects/SkGpuBlurUtils.cpp