Index: src/effects/SkBlurImageFilter.cpp |
diff --git a/src/effects/SkBlurImageFilter.cpp b/src/effects/SkBlurImageFilter.cpp |
index 3e60c9bb87ae7c591a500d417bef3aac5199be63..5d9a077d43b9e029d4b368f1651db8421c733ae7 100644 |
--- a/src/effects/SkBlurImageFilter.cpp |
+++ b/src/effects/SkBlurImageFilter.cpp |
@@ -224,6 +224,17 @@ bool SkBlurImageFilter::onFilterImage(Proxy* proxy, |
return true; |
} |
+ |
+void SkBlurImageFilter::computeFastBounds(const SkRect& src, SkRect* dst) const { |
+ if (getInput(0)) { |
+ getInput(0)->computeFastBounds(src, dst); |
+ } else { |
+ *dst = src; |
+ } |
+ |
+ dst->outset(SkScalarMul(fSigma.width(), SkIntToScalar(3)), |
+ SkScalarMul(fSigma.height(), SkIntToScalar(3))); |
+} |
bool SkBlurImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const SkMatrix& ctm, |
SkBitmap* result, SkIPoint* offset) { |
#if SK_SUPPORT_GPU |