Index: samplecode/SampleFatBits.cpp |
diff --git a/samplecode/SampleFatBits.cpp b/samplecode/SampleFatBits.cpp |
index 6900fae3eb6583e9394fbae83a273d3e360566b7..9ea1d9e47999658fea77fd374453c4067bd73f70 100644 |
--- a/samplecode/SampleFatBits.cpp |
+++ b/samplecode/SampleFatBits.cpp |
@@ -43,13 +43,10 @@ static SkShader* createChecker() { |
bm.lockPixels(); |
*bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = SkPreMultiplyColor(colors[0]); |
*bm.getAddr32(0, 1) = *bm.getAddr32(1, 0) = SkPreMultiplyColor(colors[1]); |
- SkShader* s = SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, |
- SkShader::kRepeat_TileMode); |
- |
SkMatrix m; |
m.setScale(12, 12); |
- s->setLocalMatrix(m); |
- return s; |
+ return SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, |
+ SkShader::kRepeat_TileMode, &m); |
} |
class FatBits { |