Index: gm/xfermodes3.cpp |
diff --git a/gm/xfermodes3.cpp b/gm/xfermodes3.cpp |
index 1863a3e61067b70abe6d67b5fbd9cceb426142cc..d5790d5e8a046e030c8352bfcceaf409d168286a 100644 |
--- a/gm/xfermodes3.cpp |
+++ b/gm/xfermodes3.cpp |
@@ -195,12 +195,12 @@ private: |
SkAutoLockPixels bgAlp(bg); |
memcpy(bg.getPixels(), kCheckData, sizeof(kCheckData)); |
- fBGShader.reset(SkShader::CreateBitmapShader(bg, |
- SkShader::kRepeat_TileMode, |
- SkShader::kRepeat_TileMode)); |
SkMatrix lm; |
lm.setScale(SkIntToScalar(kCheckSize), SkIntToScalar(kCheckSize)); |
- fBGShader->setLocalMatrix(lm); |
+ fBGShader.reset(SkShader::CreateBitmapShader(bg, |
+ SkShader::kRepeat_TileMode, |
+ SkShader::kRepeat_TileMode, |
+ &lm)); |
SkPaint bmpPaint; |
static const SkPoint kCenter = { SkIntToScalar(kSize) / 2, SkIntToScalar(kSize) / 2 }; |