Index: src/core/SkDraw.cpp |
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp |
index 70eb5732e13e7361b815b7494fce08c60c04433c..c35247bd99fc68925deaff6a73ec76a79a5b55b0 100644 |
--- a/src/core/SkDraw.cpp |
+++ b/src/core/SkDraw.cpp |
@@ -1894,7 +1894,6 @@ void SkDraw::drawVertices(SkCanvas::VertexMode vmode, int count, |
} |
// setup the custom shader (if needed) |
- sk_sp<SkShader> composeShader; |
if (colors) { |
if (nullptr == textures) { |
// just colors (no texture) |
@@ -1908,8 +1907,7 @@ void SkDraw::drawVertices(SkCanvas::VertexMode vmode, int count, |
xmode = SkXfermode::Create(SkXfermode::kModulate_Mode); |
releaseMode = true; |
} |
- composeShader = sk_make_sp<SkComposeShader>(triShader, sk_ref_sp(shader), xmode); |
- p.setShader(composeShader); |
+ p.setShader(sk_make_sp<SkComposeShader>(triShader, sk_ref_sp(shader), xmode)); |
if (releaseMode) { |
xmode->unref(); |
} |