Index: src/effects/SkRectShaderImageFilter.cpp |
diff --git a/src/effects/SkRectShaderImageFilter.cpp b/src/effects/SkRectShaderImageFilter.cpp |
index 00964b5ffbf367048be9ab68dc9f1fbf6159e80c..b3cdd896f1e80dba2a0cfd74f24769d983c3f14a 100644 |
--- a/src/effects/SkRectShaderImageFilter.cpp |
+++ b/src/effects/SkRectShaderImageFilter.cpp |
@@ -68,7 +68,7 @@ bool SkRectShaderImageFilter::onFilterImage(Proxy* proxy, |
SkPaint paint; |
SkMatrix matrix(ctx.ctm()); |
matrix.postTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top())); |
- SkSafeUnref(paint.setShader(SkShader::CreateLocalMatrixShader(fShader, matrix))); |
+ SkSafeUnref(paint.setShader(fShader->newWithLocalMatrix(matrix))); |
SkRect rect = SkRect::MakeWH(SkIntToScalar(bounds.width()), SkIntToScalar(bounds.height())); |
canvas.drawRect(rect, paint); |