| Index: src/effects/SkMorphologyImageFilter.cpp
|
| diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp
|
| index eef2a7d62323efdf49876a18d8213f53fc551c13..6a6dd4d451613783405e5b85207177c1c0c2dc72 100644
|
| --- a/src/effects/SkMorphologyImageFilter.cpp
|
| +++ b/src/effects/SkMorphologyImageFilter.cpp
|
| @@ -248,13 +248,13 @@ void SkMorphologyImageFilter::computeFastBounds(const SkRect& src, SkRect* dst)
|
| bool SkMorphologyImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm,
|
| SkIRect* dst) const {
|
| SkIRect bounds = src;
|
| - if (getInput(0) && !getInput(0)->filterBounds(src, ctm, &bounds)) {
|
| - return false;
|
| - }
|
| SkVector radius = SkVector::Make(SkIntToScalar(this->radius().width()),
|
| SkIntToScalar(this->radius().height()));
|
| ctm.mapVectors(&radius, 1);
|
| bounds.outset(SkScalarCeilToInt(radius.x()), SkScalarCeilToInt(radius.y()));
|
| + if (getInput(0) && !getInput(0)->filterBounds(bounds, ctm, &bounds)) {
|
| + return false;
|
| + }
|
| *dst = bounds;
|
| return true;
|
| }
|
|
|