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