aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/imagescalealigned.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/imagescalealigned.cpp')
-rw-r--r--gm/imagescalealigned.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/imagescalealigned.cpp b/gm/imagescalealigned.cpp
index 66ad8b62f4..474490fd24 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;