Index: gm/color4f.cpp |
diff --git a/gm/color4f.cpp b/gm/color4f.cpp |
index ec9bbcbfba9b3056fd7f4b672a27413091ab15f8..7704dee45800b6c26c56fdfa388e154fea87a906 100644 |
--- a/gm/color4f.cpp |
+++ b/gm/color4f.cpp |
@@ -77,7 +77,7 @@ DEF_SIMPLE_GM(color4f, canvas, 1024, 260) { |
for (auto profile : profiles) { |
const SkImageInfo info = SkImageInfo::Make(1024, 100, kN32_SkColorType, kPremul_SkAlphaType, |
profile); |
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRaster(info)); |
+ auto surface(SkSurface::MakeRaster(info)); |
surface->getCanvas()->drawPaint(bg); |
draw_into_canvas(surface->getCanvas()); |
surface->draw(canvas, 0, 0, nullptr); |