Index: tests/ImageNewShaderTest.cpp |
diff --git a/tests/ImageNewShaderTest.cpp b/tests/ImageNewShaderTest.cpp |
index 0822dbd054a072d88ad5f979c90deffc14d1048b..b6266ed60de872c112141614e7773eb703fcfcd9 100644 |
--- a/tests/ImageNewShaderTest.cpp |
+++ b/tests/ImageNewShaderTest.cpp |
@@ -44,7 +44,7 @@ void paintSource(SkSurface* sourceSurface) { |
void runShaderTest(skiatest::Reporter* reporter, SkSurface* sourceSurface, SkSurface* destinationSurface, SkImageInfo& info) { |
paintSource(sourceSurface); |
- SkAutoTUnref<SkImage> sourceImage(sourceSurface->newImageSnapshot()); |
+ sk_sp<SkImage> sourceImage(sourceSurface->makeImageSnapshot()); |
sk_sp<SkShader> sourceShader = sourceImage->makeShader( |
SkShader::kRepeat_TileMode, |
SkShader::kRepeat_TileMode); |