Index: src/effects/SkMergeImageFilter.cpp |
diff --git a/src/effects/SkMergeImageFilter.cpp b/src/effects/SkMergeImageFilter.cpp |
index 07b2c1cf3e9ef8de8309144c6c89c72407b8763c..cd16d43db3e65424cfef26c910bb3afbfbf4f46b 100755 |
--- a/src/effects/SkMergeImageFilter.cpp |
+++ b/src/effects/SkMergeImageFilter.cpp |
@@ -86,7 +86,10 @@ sk_sp<SkSpecialImage> SkMergeImageFilter::onFilterImage(SkSpecialImage* source, |
} |
// Apply the crop rect to the union of the inputs' bounds. |
- this->getCropRect().applyTo(bounds, ctx.ctm(), &bounds); |
+ // Note that the crop rect can only reduce the bounds, since this |
+ // filter does not affect transparent black. |
+ bool embiggen = false; |
+ this->getCropRect().applyTo(bounds, ctx.ctm(), embiggen, &bounds); |
if (!bounds.intersect(ctx.clipBounds())) { |
return nullptr; |
} |