diff options
author | 2016-01-28 08:23:02 -0800 | |
---|---|---|
committer | 2016-01-28 08:23:02 -0800 | |
commit | d8ff5b336e586ad971ebcafa5fb2eb1e7ac95589 (patch) | |
tree | 9e71ad81d0241b430b9537ea976876fe20a5c6ec /include/effects/SkTileImageFilter.h | |
parent | 382f8bdbf0698d80c2cc64112205ab18aafab2dd (diff) |
Image filters: Make a recursive, forward-mapping bounds
traversal which respects the CropRect. This is useful when
you want the device-space bounds of a primitive after
filtering. (This may also eventually subsume
computeFastBounds()).
This CL generalizes filterBounds() and onFilterBounds() to
take a mapping direction. It also makes filterBounds()
responsible for calling onFilterNodeBounds() and applying
the crop rect, simplifying onFilterBounds().
BUG=skia:4627
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1612953004
Review URL: https://codereview.chromium.org/1612953004
Diffstat (limited to 'include/effects/SkTileImageFilter.h')
-rw-r--r-- | include/effects/SkTileImageFilter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/effects/SkTileImageFilter.h b/include/effects/SkTileImageFilter.h index ea75a3ec7f..b29b7b2940 100644 --- a/include/effects/SkTileImageFilter.h +++ b/include/effects/SkTileImageFilter.h @@ -24,7 +24,7 @@ public: bool onFilterImage(Proxy* proxy, const SkBitmap& src, const Context& ctx, SkBitmap* dst, SkIPoint* offset) const override; bool onFilterBounds(const SkIRect& src, const SkMatrix&, - SkIRect* dst) const override; + SkIRect* dst, MapDirection) const override; void onFilterNodeBounds(const SkIRect&, const SkMatrix&, SkIRect*, MapDirection) const override; void computeFastBounds(const SkRect& src, SkRect* dst) const override; |