Index: src/effects/SkPictureImageFilter.cpp |
diff --git a/src/effects/SkPictureImageFilter.cpp b/src/effects/SkPictureImageFilter.cpp |
index d0f4d54308cc514228ee1b108e13eca8d039afe6..508f53edc2ac815ff62aa88dfbc504bb3fc43063 100644 |
--- a/src/effects/SkPictureImageFilter.cpp |
+++ b/src/effects/SkPictureImageFilter.cpp |
@@ -69,6 +69,9 @@ bool SkPictureImageFilter::onFilterImage(Proxy* proxy, const SkBitmap&, const Co |
SkIRect bounds; |
ctx.ctm().mapRect(&floatBounds, fCropRect); |
floatBounds.roundOut(&bounds); |
+ if (!bounds.intersect(ctx.clipBounds())) { |
+ return false; |
+ } |
if (bounds.isEmpty()) { |
offset->fX = offset->fY = 0; |