Index: samplecode/SampleAARectModes.cpp |
diff --git a/samplecode/SampleAARectModes.cpp b/samplecode/SampleAARectModes.cpp |
index bea0e28799bcb978a144caa5f178f0526d23258b..f9972aea9bc95052f764b18f9918600d2fd64599 100644 |
--- a/samplecode/SampleAARectModes.cpp |
+++ b/samplecode/SampleAARectModes.cpp |
@@ -68,14 +68,13 @@ static SkShader* make_bg_shader() { |
*bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCC, |
0xCC, 0xCC); |
- SkShader* s = SkShader::CreateBitmapShader(bm, |
- SkShader::kRepeat_TileMode, |
- SkShader::kRepeat_TileMode); |
- |
SkMatrix m; |
m.setScale(SkIntToScalar(6), SkIntToScalar(6)); |
- s->setLocalMatrix(m); |
- return s; |
+ |
+ return SkShader::CreateBitmapShader(bm, |
+ SkShader::kRepeat_TileMode, |
+ SkShader::kRepeat_TileMode, |
+ &m); |
} |
class AARectsModesView : public SampleView { |