Index: src/effects/SkOffsetImageFilter.cpp |
diff --git a/src/effects/SkOffsetImageFilter.cpp b/src/effects/SkOffsetImageFilter.cpp |
index 61f68f7afedb9f4a205b88cace0ac9de6cf17f13..e69cf411e371ac53e9e84cc1e959fe6796e4c0d2 100644 |
--- a/src/effects/SkOffsetImageFilter.cpp |
+++ b/src/effects/SkOffsetImageFilter.cpp |
@@ -65,6 +65,15 @@ bool SkOffsetImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& source, |
return true; |
} |
+void SkOffsetImageFilter::computeFastBounds(const SkRect& src, SkRect* dst) const { |
+ if (getInput(0)) { |
+ getInput(0)->computeFastBounds(src, dst); |
+ } else { |
+ *dst = src; |
+ } |
+ dst->offset(fOffset.fX, fOffset.fY); |
+} |
+ |
bool SkOffsetImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm, |
SkIRect* dst) { |
SkVector vec; |