diff options
author | senorblanco <senorblanco@chromium.org> | 2014-10-27 13:38:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-27 13:38:13 -0700 |
commit | ba036cc82b5a543a13cafd11a19ba0e3087fca38 (patch) | |
tree | c7157eb624d51eaed59a349d5d219fe8bd2c5ed7 /include/effects/SkPictureImageFilter.h | |
parent | a9a80e5f427e02efe7289f3784cf047d12a0b5bd (diff) |
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
Diffstat (limited to 'include/effects/SkPictureImageFilter.h')
-rw-r--r-- | include/effects/SkPictureImageFilter.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/effects/SkPictureImageFilter.h b/include/effects/SkPictureImageFilter.h index fbd04f097a..ed5c63c18a 100644 --- a/include/effects/SkPictureImageFilter.h +++ b/include/effects/SkPictureImageFilter.h @@ -46,8 +46,6 @@ protected: virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, SkBitmap* result, SkIPoint* offset) const SK_OVERRIDE; - virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&, - SkIRect* dst) const SK_OVERRIDE; private: const SkPicture* fPicture; |