Index: tests/ImageNewShaderTest.cpp |
diff --git a/tests/ImageNewShaderTest.cpp b/tests/ImageNewShaderTest.cpp |
index 7b7d80e4771b48c31744230ac3f3d6b843c44af9..0822dbd054a072d88ad5f979c90deffc14d1048b 100644 |
--- a/tests/ImageNewShaderTest.cpp |
+++ b/tests/ImageNewShaderTest.cpp |
@@ -45,9 +45,9 @@ void runShaderTest(skiatest::Reporter* reporter, SkSurface* sourceSurface, SkSur |
paintSource(sourceSurface); |
SkAutoTUnref<SkImage> sourceImage(sourceSurface->newImageSnapshot()); |
- SkAutoTUnref<SkShader> sourceShader(sourceImage->newShader( |
+ sk_sp<SkShader> sourceShader = sourceImage->makeShader( |
SkShader::kRepeat_TileMode, |
- SkShader::kRepeat_TileMode)); |
+ SkShader::kRepeat_TileMode); |
SkPaint paint; |
paint.setShader(sourceShader); |
@@ -73,10 +73,10 @@ void runShaderTest(skiatest::Reporter* reporter, SkSurface* sourceSurface, SkSur |
SkMatrix matrix; |
matrix.setTranslate(SkIntToScalar(-1), SkIntToScalar(0)); |
- SkAutoTUnref<SkShader> sourceShaderTranslated(sourceImage->newShader( |
+ sk_sp<SkShader> sourceShaderTranslated = sourceImage->makeShader( |
SkShader::kRepeat_TileMode, |
SkShader::kRepeat_TileMode, |
- &matrix)); |
+ &matrix); |
destinationCanvas->clear(SK_ColorTRANSPARENT); |