Index: src/effects/SkOffsetImageFilter.cpp |
diff --git a/src/effects/SkOffsetImageFilter.cpp b/src/effects/SkOffsetImageFilter.cpp |
index 70247f2a190cf31bd894051c6c325cc0a8bb22ce..2aac4f32d10dec1bd078317fac30cee1d59039aa 100644 |
--- a/src/effects/SkOffsetImageFilter.cpp |
+++ b/src/effects/SkOffsetImageFilter.cpp |
@@ -37,7 +37,9 @@ bool SkOffsetImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& source, |
} |
SkIRect bounds; |
- if (!this->applyCropRect(ctx, src, srcOffset, &bounds)) { |
+ SkIRect srcBounds = src.bounds(); |
+ srcBounds.offset(srcOffset); |
+ if (!this->applyCropRect(ctx, srcBounds, &bounds)) { |
return false; |
} |