aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkLocalMatrixImageFilter.cpp
diff options
context:
space:
mode:
authorGravatar senorblanco <senorblanco@chromium.org>2016-01-28 08:23:02 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-28 08:23:02 -0800
commitd8ff5b336e586ad971ebcafa5fb2eb1e7ac95589 (patch)
tree9e71ad81d0241b430b9537ea976876fe20a5c6ec /src/core/SkLocalMatrixImageFilter.cpp
parent382f8bdbf0698d80c2cc64112205ab18aafab2dd (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 'src/core/SkLocalMatrixImageFilter.cpp')
-rw-r--r--src/core/SkLocalMatrixImageFilter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkLocalMatrixImageFilter.cpp b/src/core/SkLocalMatrixImageFilter.cpp
index 10d63ede66..5dce4190a9 100644
--- a/src/core/SkLocalMatrixImageFilter.cpp
+++ b/src/core/SkLocalMatrixImageFilter.cpp
@@ -45,8 +45,8 @@ bool SkLocalMatrixImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& src,
}
bool SkLocalMatrixImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& matrix,
- SkIRect* dst) const {
- return this->getInput(0)->filterBounds(src, SkMatrix::Concat(matrix, fLocalM), dst);
+ SkIRect* dst, MapDirection direction) const {
+ return this->getInput(0)->filterBounds(src, SkMatrix::Concat(matrix, fLocalM), dst, direction);
}
#ifndef SK_IGNORE_TO_STRING