Index: gm/mixedxfermodes.cpp |
diff --git a/gm/mixedxfermodes.cpp b/gm/mixedxfermodes.cpp |
index 45623255571e26984ebb286a9124833cbc3b1f38..f2d7fa3b916e7ed274b5b8b4fb8f93a97c803843 100644 |
--- a/gm/mixedxfermodes.cpp |
+++ b/gm/mixedxfermodes.cpp |
@@ -86,13 +86,13 @@ protected: |
SkBitmap bitmap; |
bitmap.allocN32Pixels(2, 2); |
memcpy(bitmap.getPixels(), kCheckerPixelData, sizeof(kCheckerPixelData)); |
+ SkMatrix lm; |
+ lm.setScale(SkIntToScalar(20), SkIntToScalar(20)); |
fBG.reset(SkShader::CreateBitmapShader(bitmap, |
SkShader::kRepeat_TileMode, |
- SkShader::kRepeat_TileMode)); |
+ SkShader::kRepeat_TileMode, |
+ &lm)); |
} |
- SkMatrix lm; |
- lm.setScale(SkIntToScalar(20), SkIntToScalar(20)); |
- fBG->setLocalMatrix(lm); |
SkPaint bgPaint; |
bgPaint.setShader(fBG.get()); |