Index: tests/CanvasTest.cpp |
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp |
index f34430f475aea5bd1be0ccccc22f1e553760233c..8681ca4f180651823ed2be6f22bbdf73541c9293 100644 |
--- a/tests/CanvasTest.cpp |
+++ b/tests/CanvasTest.cpp |
@@ -415,9 +415,8 @@ static void DrawVerticesShaderTestStep(SkCanvas* canvas, const TestData& d, |
pts[2].set(SkIntToScalar(d.fWidth), SkIntToScalar(d.fHeight)); |
pts[3].set(0, SkIntToScalar(d.fHeight)); |
SkPaint paint; |
- SkShader* shader = SkShader::CreateBitmapShader(d.fBitmap, |
- SkShader::kClamp_TileMode, SkShader::kClamp_TileMode); |
- paint.setShader(shader)->unref(); |
+ paint.setShader(SkShader::MakeBitmapShader(d.fBitmap, SkShader::kClamp_TileMode, |
+ SkShader::kClamp_TileMode)); |
canvas->drawVertices(SkCanvas::kTriangleFan_VertexMode, 4, pts, pts, |
nullptr, nullptr, nullptr, 0, paint); |
} |