Fix bounds computation of all 0-input filters.
authorsenorblanco <senorblanco@chromium.org>
Wed, 29 Oct 2014 19:36:32 +0000 (12:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 29 Oct 2014 19:36:32 +0000 (12:36 -0700)
commit8f3937d9fcb28018ec14db6697d41b645716d589
treee22ff14a48607de288266df4dff504c2b5156297
parenta5cf665997d73169e2f5260eaf9643af1f309762
Fix bounds computation of all 0-input filters.

The SkRectShaderImageFilter had the same bug as previously fixed for
SkBitmapSource and SkPictureImageFilter. Rather than copy-and-paste
the implementation, this change makes all filters with 0 inputs return
their source bounds, instead of returning false.

BUG=427251

Review URL: https://codereview.chromium.org/681643003
expectations/gm/ignored-tests.txt
include/effects/SkBitmapSource.h
include/effects/SkPictureImageFilter.h
src/core/SkImageFilter.cpp
src/effects/SkBitmapSource.cpp
src/effects/SkPictureImageFilter.cpp
tests/ImageFilterTest.cpp