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