Index: tests/BlitRowTest.cpp |
diff --git a/tests/BlitRowTest.cpp b/tests/BlitRowTest.cpp |
index 032acdac3942b0ba658fa933704c0103184d6ad5..b6a24eb98d4cae5b8d93ca3c25338808aae7413b 100644 |
--- a/tests/BlitRowTest.cpp |
+++ b/tests/BlitRowTest.cpp |
@@ -166,8 +166,10 @@ |
fPts[1].set(w, 0); |
fPts[2].set(w, h); |
fPts[3].set(0, h); |
- paint->setShader(SkShader::MakeBitmapShader(bm, SkShader::kClamp_TileMode, |
- SkShader::kClamp_TileMode)); |
+ SkShader* s = SkShader::CreateBitmapShader(bm, SkShader::kClamp_TileMode, |
+ SkShader::kClamp_TileMode); |
+ paint->setShader(s)->unref(); |
+ |
} |
void draw(SkCanvas* canvas, SkPaint* paint) { |