Index: tests/CachedDecodingPixelRefTest.cpp |
diff --git a/tests/CachedDecodingPixelRefTest.cpp b/tests/CachedDecodingPixelRefTest.cpp |
index fe6b412cd1e6aab2aca93a85f8c948c370512db3..da4a111b28ae4916f8ee93c2e700c7189df5d494 100644 |
--- a/tests/CachedDecodingPixelRefTest.cpp |
+++ b/tests/CachedDecodingPixelRefTest.cpp |
@@ -320,8 +320,8 @@ DEF_TEST(Image_NewFromGenerator, r) { |
TestImageGenerator::TestType test = testTypes[i]; |
for (const SkColorType testColorType : testColorTypes) { |
SkImageGenerator* gen = new TestImageGenerator(test, r, testColorType); |
- SkAutoTUnref<SkImage> image(SkImage::NewFromGenerator(gen)); |
- if (nullptr == image.get()) { |
+ sk_sp<SkImage> image(SkImage::MakeFromGenerator(gen)); |
+ if (nullptr == image) { |
ERRORF(r, "SkImage::NewFromGenerator unexpecedly failed [" |
SK_SIZE_T_SPECIFIER "]", i); |
continue; |