Fix zero-sized blur with crop rect.
authorStephen White <senorblanco@chromium.org>
Wed, 3 Feb 2016 14:38:46 +0000 (09:38 -0500)
committerStephen White <senorblanco@chromium.org>
Wed, 3 Feb 2016 14:38:46 +0000 (09:38 -0500)
commit3a2b4d5906625f5178e6da69c1f62ab4e6f275e7
tree36a70b53ddb99c68a2b3838d4872041f4f431243
parent109a6d5c08c078a110812628ea35aa2ca85c3489
Fix zero-sized blur with crop rect.

[Cherry-pick of 6404981b0c3984ba91b3bda35e60c6c8a8a773c2 to chrome/m49.]

Neither the GPU nor CPU paths were correctly handling the crop rect
in this case.

NOTE: this change adds a new test case to the imageblurcropped GM, so
it will have to be rebaselined.

BUG=skia:4876
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1657773002
NOTREECHECKS=true
NOTRY=true
NOPRESUBMIT=true

Review URL: https://codereview.chromium.org/1663533003 .
gm/imagefilterscropped.cpp
src/effects/SkBlurImageFilter.cpp