Index: src/effects/SkRectShaderImageFilter.cpp |
diff --git a/src/effects/SkRectShaderImageFilter.cpp b/src/effects/SkRectShaderImageFilter.cpp |
index 18e38470bc9ba3f5e907ae8e3fcade472f0a1c9d..27b39d7fb1dde27fb3926738b5df9edd570af91c 100644 |
--- a/src/effects/SkRectShaderImageFilter.cpp |
+++ b/src/effects/SkRectShaderImageFilter.cpp |
@@ -69,8 +69,8 @@ bool SkRectShaderImageFilter::onFilterImage(Proxy* proxy, |
SkCanvas canvas(device.get()); |
SkPaint paint; |
paint.setShader(fShader); |
- SkMatrix matrix; |
- matrix.setTranslate(-SkIntToScalar(bounds.fLeft), -SkIntToScalar(bounds.fTop)); |
+ SkMatrix matrix(ctm); |
+ matrix.postTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top())); |
fShader->setLocalMatrix(matrix); |
SkRect rect = SkRect::MakeWH(SkIntToScalar(bounds.width()), SkIntToScalar(bounds.height())); |
canvas.drawRect(rect, paint); |