Index: gm/localmatriximagefilter.cpp |
diff --git a/gm/localmatriximagefilter.cpp b/gm/localmatriximagefilter.cpp |
index f99655863eea603ac3125da05a52b7b5f8abac8f..dd86c967f96eebc2e77d85be4a6e64b192b026be 100644 |
--- a/gm/localmatriximagefilter.cpp |
+++ b/gm/localmatriximagefilter.cpp |
@@ -16,9 +16,9 @@ |
static sk_sp<SkImage> make_image(SkCanvas* rootCanvas) { |
SkImageInfo info = SkImageInfo::MakeN32Premul(100, 100); |
- SkAutoTUnref<SkSurface> surface(rootCanvas->newSurface(info)); |
+ auto surface(rootCanvas->makeSurface(info)); |
if (!surface) { |
- surface.reset(SkSurface::NewRaster(info)); |
+ surface = SkSurface::MakeRaster(info); |
} |
SkPaint paint; |