aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/YUVTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/YUVTest.cpp')
-rw-r--r--tests/YUVTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/YUVTest.cpp b/tests/YUVTest.cpp
index 0c31c0929a..825e2d1628 100644
--- a/tests/YUVTest.cpp
+++ b/tests/YUVTest.cpp
@@ -20,7 +20,7 @@ static void codec_yuv(skiatest::Reporter* reporter,
if (!stream) {
return;
}
- std::unique_ptr<SkCodec> codec(SkCodec::NewFromStream(stream.release()));
+ std::unique_ptr<SkCodec> codec(SkCodec::MakeFromStream(std::move(stream)));
REPORTER_ASSERT(reporter, codec);
if (!codec) {
return;