Index: gm/aarectmodes.cpp |
diff --git a/gm/aarectmodes.cpp b/gm/aarectmodes.cpp |
index a614761e69bfcf68cde965f2440ae39ed2d271b9..f12ff8c63fed3894a4ea33d1f2c9ca78e356c8d3 100644 |
--- a/gm/aarectmodes.cpp |
+++ b/gm/aarectmodes.cpp |
@@ -113,13 +113,13 @@ static SkShader* make_bg_shader() { |
*bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCC, |
0xCC, 0xCC); |
+ SkMatrix m; |
+ m.setScale(SkIntToScalar(6), SkIntToScalar(6)); |
SkShader* s = SkShader::CreateBitmapShader(bm, |
SkShader::kRepeat_TileMode, |
- SkShader::kRepeat_TileMode); |
+ SkShader::kRepeat_TileMode, |
+ &m); |
- SkMatrix m; |
- m.setScale(SkIntToScalar(6), SkIntToScalar(6)); |
- s->setLocalMatrix(m); |
return s; |
} |