Index: samplecode/SamplePatch.cpp |
diff --git a/samplecode/SamplePatch.cpp b/samplecode/SamplePatch.cpp |
index dc3e9df086a4c202e01b1861237eaa8191e1a028..92bb17cd062870dead3d818490e6d8855534ab91 100644 |
--- a/samplecode/SamplePatch.cpp |
+++ b/samplecode/SamplePatch.cpp |
@@ -306,13 +306,13 @@ protected: |
if (true) { |
SkMatrix m; |
m.setSkew(1, 0); |
- SkShader* s = SkShader::CreateLocalMatrixShader(paint.getShader(), m); |
+ SkShader* s = paint.getShader()->newWithLocalMatrix(m); |
paint.setShader(s)->unref(); |
} |
if (true) { |
SkMatrix m; |
m.setRotate(fAngle); |
- SkShader* s = SkShader::CreateLocalMatrixShader(paint.getShader(), m); |
+ SkShader* s = paint.getShader()->newWithLocalMatrix(m); |
paint.setShader(s)->unref(); |
} |
patch.setBounds(fSize1.fX, fSize1.fY); |