Index: tests/ImageIsOpaqueTest.cpp |
diff --git a/tests/ImageIsOpaqueTest.cpp b/tests/ImageIsOpaqueTest.cpp |
index 739af2bd4990e0cbbbb00a0bbbce6a085a5949a5..6f1370833516c011b9fe861b54d9f9a9d31497e0 100644 |
--- a/tests/ImageIsOpaqueTest.cpp |
+++ b/tests/ImageIsOpaqueTest.cpp |
@@ -49,7 +49,7 @@ DEF_TEST(ImageInfo_flattening, reporter) { |
} |
static void check_isopaque(skiatest::Reporter* reporter, SkSurface* surface, bool expectedOpaque) { |
- SkAutoTUnref<SkImage> image(surface->newImageSnapshot()); |
+ sk_sp<SkImage> image(surface->makeImageSnapshot()); |
REPORTER_ASSERT(reporter, image->isOpaque() == expectedOpaque); |
} |