Index: gm/complexclip_blur_tiled.cpp |
diff --git a/gm/complexclip_blur_tiled.cpp b/gm/complexclip_blur_tiled.cpp |
index b619e67e14b30e7234971682000718adf988de7c..9413e64e07d4cce42774486a69edc695b50897fc 100644 |
--- a/gm/complexclip_blur_tiled.cpp |
+++ b/gm/complexclip_blur_tiled.cpp |
@@ -40,9 +40,9 @@ protected: |
} |
int ts = SkScalarCeilToInt(tile_size); |
SkImageInfo info = SkImageInfo::MakeN32Premul(ts, ts); |
- SkAutoTUnref<SkSurface> tileSurface(canvas->newSurface(info)); |
- if (!tileSurface.get()) { |
- tileSurface.reset(SkSurface::NewRaster(info)); |
+ auto tileSurface(canvas->makeSurface(info)); |
+ if (!tileSurface) { |
+ tileSurface = SkSurface::MakeRaster(info); |
} |
SkCanvas* tileCanvas = tileSurface->getCanvas(); |
for (SkScalar y = bounds.top(); y < bounds.bottom(); y += tile_size) { |