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