diff options
author | senorblanco <senorblanco@chromium.org> | 2016-03-21 14:51:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-21 14:51:59 -0700 |
commit | e5e79840ef38ab1d3f03abcf1b2df66fb9940018 (patch) | |
tree | 1401c257dfc5f6658c5911499d9037eaee9bacb5 /src/core/SkLocalMatrixImageFilter.h | |
parent | 989da4a32cd6823359f31c971c3b3f31425e905e (diff) |
Change signatures of filter bounds methods to return a rect.
Change filterBounds(), onFilterBounds() and onFilterNodeBounds() and computeFastBounds() to
return the destination rectangle. There was no code path that could
return false, and returning rects by value is ok now.
BUG=skia:5094
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1823573003
Review URL: https://codereview.chromium.org/1823573003
Diffstat (limited to 'src/core/SkLocalMatrixImageFilter.h')
-rw-r--r-- | src/core/SkLocalMatrixImageFilter.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/SkLocalMatrixImageFilter.h b/src/core/SkLocalMatrixImageFilter.h index f2fd062f6c..da49df4932 100644 --- a/src/core/SkLocalMatrixImageFilter.h +++ b/src/core/SkLocalMatrixImageFilter.h @@ -27,8 +27,7 @@ protected: void flatten(SkWriteBuffer&) const override; bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context&, SkBitmap* result, SkIPoint* offset) const override; - bool onFilterBounds(const SkIRect& src, const SkMatrix&, SkIRect* dst, - MapDirection) const override; + SkIRect onFilterBounds(const SkIRect& src, const SkMatrix&, MapDirection) const override; private: SkLocalMatrixImageFilter(const SkMatrix& localM, SkImageFilter* input); |