Index: gm/lcdblendmodes.cpp |
diff --git a/gm/lcdblendmodes.cpp b/gm/lcdblendmodes.cpp |
index c3fe9ff1493f39add95bdeaa719f15064a32abb2..874714b7fc827ab022a78edf70bbf50682a385b1 100644 |
--- a/gm/lcdblendmodes.cpp |
+++ b/gm/lcdblendmodes.cpp |
@@ -61,9 +61,9 @@ protected: |
canvas->drawRect(r, p); |
SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight); |
- SkAutoTUnref<SkSurface> surface(canvas->newSurface(info)); |
+ auto surface(canvas->makeSurface(info)); |
if (nullptr == surface) { |
- surface.reset(SkSurface::NewRaster(info)); |
+ surface = SkSurface::MakeRaster(info); |
} |
SkCanvas* surfCanvas = surface->getCanvas(); |