Index: samplecode/SampleHairModes.cpp |
diff --git a/samplecode/SampleHairModes.cpp b/samplecode/SampleHairModes.cpp |
index 4aa8e0208fea318fc9aa1e2ce4f3d07fee234a61..878857703e9c0a4f416746b26158299b89a500fb 100644 |
--- a/samplecode/SampleHairModes.cpp |
+++ b/samplecode/SampleHairModes.cpp |
@@ -66,14 +66,13 @@ 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); |
} |
class HairModesView : public SampleView { |