diff options
author | senorblanco <senorblanco@chromium.org> | 2014-10-29 12:36:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-29 12:36:32 -0700 |
commit | 8f3937d9fcb28018ec14db6697d41b645716d589 (patch) | |
tree | e22ff14a48607de288266df4dff504c2b5156297 /include/effects/SkPictureImageFilter.h | |
parent | a5cf665997d73169e2f5260eaf9643af1f309762 (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; |