Index: src/effects/SkMatrixConvolutionImageFilter.cpp |
diff --git a/src/effects/SkMatrixConvolutionImageFilter.cpp b/src/effects/SkMatrixConvolutionImageFilter.cpp |
index 7b9812ddbc30bea4aee2cd976bb0b1eb24b234cd..1df1ff9de0016ca3fe6b3a559c88d8ea4ee376fc 100644 |
--- a/src/effects/SkMatrixConvolutionImageFilter.cpp |
+++ b/src/effects/SkMatrixConvolutionImageFilter.cpp |
@@ -265,7 +265,9 @@ bool SkMatrixConvolutionImageFilter::onFilterImage(Proxy* proxy, |
} |
SkIRect bounds; |
- if (!this->applyCropRect(ctx, proxy, src, &srcOffset, &bounds, &src)) { |
+ src.getBounds(&bounds); |
+ bounds.offset(srcOffset); |
+ if (!this->applyCropRect(&bounds, ctx.ctm())) { |
return false; |
} |