aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkRectShaderImageFilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/SkRectShaderImageFilter.cpp')
-rw-r--r--src/effects/SkRectShaderImageFilter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/effects/SkRectShaderImageFilter.cpp b/src/effects/SkRectShaderImageFilter.cpp
index dad0e02525..13e59c2c27 100644
--- a/src/effects/SkRectShaderImageFilter.cpp
+++ b/src/effects/SkRectShaderImageFilter.cpp
@@ -56,8 +56,7 @@ bool SkRectShaderImageFilter::onFilterImage(Proxy* proxy,
SkBitmap* result,
SkIPoint* offset) const {
SkIRect bounds;
- source.getBounds(&bounds);
- if (!this->applyCropRect(&bounds, ctx.ctm())) {
+ if (!this->applyCropRect(ctx, source, SkIPoint::Make(0, 0), &bounds)) {
return false;
}