Index: tests/IndexedPngOverflowTest.cpp |
diff --git a/tests/IndexedPngOverflowTest.cpp b/tests/IndexedPngOverflowTest.cpp |
index f516898a1a5ea706fc12afdbb95868b1caf54e4c..1a48b6499b01850ca6a5d13b49e14a44338eb96a 100644 |
--- a/tests/IndexedPngOverflowTest.cpp |
+++ b/tests/IndexedPngOverflowTest.cpp |
@@ -33,7 +33,7 @@ DEF_TEST(IndexedPngOverflow, reporter) { |
bool success = decode_memory(gPng, sizeof(gPng), &image); |
REPORTER_ASSERT(reporter, success); |
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRaster(SkImageInfo::MakeN32Premul(20, 1))); |
+ auto surface(SkSurface::MakeRaster(SkImageInfo::MakeN32Premul(20, 1))); |
SkCanvas* canvas = surface->getCanvas(); |
SkRect destRect = SkRect::MakeXYWH(0, 0, 20, 1); |
canvas->drawBitmapRect(image, destRect, nullptr); |