Index: gm/imagescalealigned.cpp |
diff --git a/gm/imagescalealigned.cpp b/gm/imagescalealigned.cpp |
index 66ad8b62f4b16c953f05be744c7bd44ecb865d4f..474490fd2419fbd9293b3b9e548fc72499334c89 100644 |
--- a/gm/imagescalealigned.cpp |
+++ b/gm/imagescalealigned.cpp |
@@ -73,7 +73,7 @@ private: |
const SkPoint end = SkPoint::Make(start.x() + vec.x() * (kSegLen - 1), |
start.y() + vec.y() * (kSegLen - 1)); |
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(kSegLen, kSegLen)); |
+ auto surface(SkSurface::MakeRasterN32Premul(kSegLen, kSegLen)); |
surface->getCanvas()->clear(SK_ColorTRANSPARENT); |
SkPaint paint; |