Image filters: change applyCropRect() to take a src rect.
authorsenorblanco <senorblanco@chromium.org>
Tue, 16 Feb 2016 17:11:18 +0000 (09:11 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Feb 2016 17:11:18 +0000 (09:11 -0800)
commitafec27f13b28d900232cb1825c63cab2d6e4e103
treef16414c3118f2b0eb50a19b10fce60554fee7d33
parent944c2d901c5118abae2262f38414ccb939111355
Image filters: change applyCropRect() to take a src rect.

Instead of taking the source bitmap and offset, we simply take the
source rect bounds, and make the caller responsible for computing it.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1702683002

Review URL: https://codereview.chromium.org/1702683002
include/core/SkImageFilter.h
src/core/SkImageFilter.cpp
src/effects/SkBlurImageFilter.cpp
src/effects/SkColorFilterImageFilter.cpp
src/effects/SkDisplacementMapEffect.cpp
src/effects/SkDropShadowImageFilter.cpp
src/effects/SkOffsetImageFilter.cpp
src/effects/SkPaintImageFilter.cpp
src/effects/SkXfermodeImageFilter.cpp