diff options
Diffstat (limited to 'samplecode/SamplePatch.cpp')
| -rw-r--r-- | samplecode/SamplePatch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SamplePatch.cpp b/samplecode/SamplePatch.cpp index dc3e9df086..92bb17cd06 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); |
