Index: tests/DrawBitmapRectTest.cpp |
diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp |
index 8928d4c90959d2d32f609609fd31126041ad2de1..88b9437935cebe326a2ce51b0ebe7c7ecdfc91b0 100644 |
--- a/tests/DrawBitmapRectTest.cpp |
+++ b/tests/DrawBitmapRectTest.cpp |
@@ -195,9 +195,11 @@ |
0.0078740157f, |
SkIntToScalar(239), |
0, 0, SK_Scalar1); |
+ SkShader* s = SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, |
+ SkShader::kRepeat_TileMode, &matrix); |
+ |
SkPaint paint; |
- paint.setShader(SkShader::MakeBitmapShader(bm, SkShader::kRepeat_TileMode, |
- SkShader::kRepeat_TileMode, &matrix)); |
+ paint.setShader(s)->unref(); |
SkRect r = SkRect::MakeXYWH(681, 239, 695, 253); |
c.drawRect(r, paint); |