Index: src/effects/SkColorFilterImageFilter.cpp |
diff --git a/src/effects/SkColorFilterImageFilter.cpp b/src/effects/SkColorFilterImageFilter.cpp |
index b0e47505a7399f6ed7b1aacec5f80ca17abfd305..5b97d1bc362f8447c4e0d67ae39a2fae34ec1418 100644 |
--- a/src/effects/SkColorFilterImageFilter.cpp |
+++ b/src/effects/SkColorFilterImageFilter.cpp |
@@ -66,7 +66,9 @@ bool SkColorFilterImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& sourc |
} |
SkIRect bounds; |
- if (!this->applyCropRect(ctx, src, srcOffset, &bounds)) { |
+ SkIRect srcBounds = src.bounds(); |
+ srcBounds.offset(srcOffset); |
+ if (!this->applyCropRect(ctx, srcBounds, &bounds)) { |
return false; |
} |