Index: tests/DrawBitmapRectTest.cpp |
diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp |
index 9912643566ad4a820ffdff5629ea8b6a5a8013b4..e6cc781f18bf3d13644993b29049de638a9bbf1e 100644 |
--- a/tests/DrawBitmapRectTest.cpp |
+++ b/tests/DrawBitmapRectTest.cpp |
@@ -197,8 +197,6 @@ static void test_wacky_bitmapshader(skiatest::Reporter* reporter, |
bm.allocN32Pixels(width, height); |
bm.eraseColor(SK_ColorRED); |
- SkShader* s = SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, |
- SkShader::kRepeat_TileMode); |
matrix.setAll(0.0078740157f, |
0, |
SkIntToScalar(249), |
@@ -206,7 +204,8 @@ static void test_wacky_bitmapshader(skiatest::Reporter* reporter, |
0.0078740157f, |
SkIntToScalar(239), |
0, 0, SK_Scalar1); |
- s->setLocalMatrix(matrix); |
+ SkShader* s = SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, |
+ SkShader::kRepeat_TileMode, &matrix); |
SkPaint paint; |
paint.setShader(s)->unref(); |