Index: samplecode/SampleColorFilter.cpp |
diff --git a/samplecode/SampleColorFilter.cpp b/samplecode/SampleColorFilter.cpp |
index 2dc2e427dcf0292c6415eb2d6539ece1e5b302ce..fb5d42744f2a502b6ff5265f932f1c906e59fcef 100644 |
--- a/samplecode/SampleColorFilter.cpp |
+++ b/samplecode/SampleColorFilter.cpp |
@@ -92,13 +92,10 @@ SkShader* createChecker() { |
bm.lockPixels(); |
*bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = SkPreMultiplyColor(0xFFFFFFFF); |
*bm.getAddr32(0, 1) = *bm.getAddr32(1, 0) = SkPreMultiplyColor(0xFFCCCCCC); |
- 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); |
} |
static SkBitmap createBitmap(int n) { |