Index: bench/ImageFilterCollapse.cpp |
diff --git a/bench/ImageFilterCollapse.cpp b/bench/ImageFilterCollapse.cpp |
index bd3f80fefb59a2b9f89b1f46c34ec8d54b0736f0..2a2fa3a7d4b46d98f6cbb626c63aba14c1bc157a 100644 |
--- a/bench/ImageFilterCollapse.cpp |
+++ b/bench/ImageFilterCollapse.cpp |
@@ -66,8 +66,10 @@ |
SK_ColorBLACK, SK_ColorGREEN, SK_ColorCYAN, |
SK_ColorRED, 0, SK_ColorBLUE, SK_ColorWHITE |
}; |
- paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), |
- SkShader::kClamp_TileMode)); |
+ SkAutoTUnref<SkShader> shader(SkGradientShader::CreateLinear( |
+ pts, colors, nullptr, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode |
+ )); |
+ paint.setShader(shader); |
canvas.drawPaint(paint); |
} |
}; |