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