Index: tests/FlattenableFactoryToName.cpp |
diff --git a/tests/FlattenableFactoryToName.cpp b/tests/FlattenableFactoryToName.cpp |
index f8cb4fa2f9d2b9e1123c57ed80f793c6ac4f7b0a..c8f4a62e821c991d1f1e94052ff65d931eac3e03 100644 |
--- a/tests/FlattenableFactoryToName.cpp |
+++ b/tests/FlattenableFactoryToName.cpp |
@@ -36,7 +36,6 @@ DEF_TEST(FlattenableFactoryToName, r) { |
bm.allocN32Pixels(8, 8); |
bm.eraseColor(SK_ColorCYAN); |
SkAutoTUnref<SkImage> image(SkImage::NewFromBitmap(bm)); |
- SkAutoTUnref<SkShader> shader(image->newShader(SkShader::kClamp_TileMode, |
- SkShader::kClamp_TileMode)); |
- test_flattenable(r, shader, "SkImage::newShader()"); |
+ auto shader = image->makeShader(SkShader::kClamp_TileMode, SkShader::kClamp_TileMode); |
+ test_flattenable(r, shader.get(), "SkImage::newShader()"); |
} |