| Index: samplecode/SamplePatch.cpp
|
| diff --git a/samplecode/SamplePatch.cpp b/samplecode/SamplePatch.cpp
|
| index c9ecb709900da8fa6293d947843763264099420f..3ce350ac478aa6843d06c5c7fa29f19d26b2fda3 100644
|
| --- a/samplecode/SamplePatch.cpp
|
| +++ b/samplecode/SamplePatch.cpp
|
| @@ -289,14 +289,12 @@ protected:
|
| if (true) {
|
| SkMatrix m;
|
| m.setSkew(1, 0);
|
| - SkShader* s = paint.getShader()->newWithLocalMatrix(m);
|
| - paint.setShader(s)->unref();
|
| + paint.setShader(paint.getShader()->makeWithLocalMatrix(m));
|
| }
|
| if (true) {
|
| SkMatrix m;
|
| m.setRotate(fAngle);
|
| - SkShader* s = paint.getShader()->newWithLocalMatrix(m);
|
| - paint.setShader(s)->unref();
|
| + paint.setShader(paint.getShader()->makeWithLocalMatrix(m));
|
| }
|
| patch.setBounds(fSize1.fX, fSize1.fY);
|
| drawpatches(canvas, paint, nu, nv, &patch);
|
|
|