Index: src/effects/SkBlurImageFilter.cpp |
diff --git a/src/effects/SkBlurImageFilter.cpp b/src/effects/SkBlurImageFilter.cpp |
index 71bc8114dfd9d85b3d0cab75077baab563572e37..8787ccec8c16d655442c4a924aaf61b5a1c6b5c8 100644 |
--- a/src/effects/SkBlurImageFilter.cpp |
+++ b/src/effects/SkBlurImageFilter.cpp |
@@ -253,13 +253,13 @@ void SkBlurImageFilter::computeFastBounds(const SkRect& src, SkRect* dst) const |
bool SkBlurImageFilter::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 sigma = SkVector::Make(fSigma.width(), fSigma.height()); |
ctm.mapVectors(&sigma, 1); |
bounds.outset(SkScalarCeilToInt(SkScalarMul(sigma.x(), SkIntToScalar(3))), |
SkScalarCeilToInt(SkScalarMul(sigma.y(), SkIntToScalar(3)))); |
+ if (getInput(0) && !getInput(0)->filterBounds(bounds, ctm, &bounds)) { |
+ return false; |
+ } |
*dst = bounds; |
return true; |
} |