Index: samplecode/SampleDash.cpp |
diff --git a/samplecode/SampleDash.cpp b/samplecode/SampleDash.cpp |
index 26d36942dfadced7b2aa952e8b35f2b66039f8d9..e4fa79d47e4ef134997e99389715874831e73089 100644 |
--- a/samplecode/SampleDash.cpp |
+++ b/samplecode/SampleDash.cpp |
@@ -28,8 +28,7 @@ static void setBitmapDash(SkPaint* paint, int width) { |
matrix.setScale(SkIntToScalar(width), SK_Scalar1); |
SkShader* s = SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, |
- SkShader::kClamp_TileMode); |
- s->setLocalMatrix(matrix); |
+ SkShader::kClamp_TileMode, &matrix); |
paint->setShader(s)->unref(); |
} |