Index: src/effects/SkDisplacementMapEffect.cpp |
diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp |
index 30f980a5c639232736d80f6278ec1bc3c08d6a08..41f1a6db71678fa8b0cb1afb6b4ffaafc53522b5 100644 |
--- a/src/effects/SkDisplacementMapEffect.cpp |
+++ b/src/effects/SkDisplacementMapEffect.cpp |
@@ -282,13 +282,12 @@ void SkDisplacementMapEffect::onFilterNodeBounds(const SkIRect& src, const SkMat |
} |
bool SkDisplacementMapEffect::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, |
- SkIRect* dst) const { |
- SkIRect bounds; |
- this->onFilterNodeBounds(src, ctm, &bounds, kReverse_MapDirection); |
+ SkIRect* dst, MapDirection direction) const { |
+ // Recurse only into color input. |
if (this->getColorInput()) { |
- return this->getColorInput()->filterBounds(bounds, ctm, dst); |
+ return this->getColorInput()->filterBounds(src, ctm, dst, direction); |
} |
- *dst = bounds; |
+ *dst = src; |
return true; |
} |