Index: gm/hairmodes.cpp |
diff --git a/gm/hairmodes.cpp b/gm/hairmodes.cpp |
index 4aa999d3838f4c2551200c418c3b2270dfc6495c..783c225e98f2c29e9883f2041c79da6e153d83a4 100644 |
--- a/gm/hairmodes.cpp |
+++ b/gm/hairmodes.cpp |
@@ -64,14 +64,12 @@ static SkShader* make_bg_shader() { |
*bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; |
*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); |
} |
namespace skiagm { |