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