Index: src/utils/SkMeshUtils.cpp |
diff --git a/src/utils/SkMeshUtils.cpp b/src/utils/SkMeshUtils.cpp |
index cf4e5099b37b010427bb420d0f0a454473544f63..5d3eefc54fb3fcb1fcfe803d3f8f35a3cfd3e9d6 100644 |
--- a/src/utils/SkMeshUtils.cpp |
+++ b/src/utils/SkMeshUtils.cpp |
@@ -92,9 +92,9 @@ void SkMeshUtils::Draw(SkCanvas* canvas, const SkBitmap& bitmap, |
if (idx.init(bitmap.width(), bitmap.height(), rows, cols)) { |
SkPaint p(paint); |
- p.setShader(SkShader::CreateBitmapShader(bitmap, |
+ p.setShader(SkShader::MakeBitmapShader(bitmap, |
SkShader::kClamp_TileMode, |
- SkShader::kClamp_TileMode))->unref(); |
+ SkShader::kClamp_TileMode)); |
canvas->drawVertices(SkCanvas::kTriangles_VertexMode, |
rows * cols, verts, idx.tex(), colors, nullptr, |
idx.indices(), idx.indexCount(), p); |