aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/readpixels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/readpixels.cpp')
-rw-r--r--gm/readpixels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/readpixels.cpp b/gm/readpixels.cpp
index 69d22bb7f2..bd2fe9bcc3 100644
--- a/gm/readpixels.cpp
+++ b/gm/readpixels.cpp
@@ -52,7 +52,7 @@ static const int kHeight = 64;
static sk_sp<SkImage> make_raster_image(SkColorType colorType) {
std::unique_ptr<SkStream> stream(GetResourceAsStream("google_chrome.ico"));
- std::unique_ptr<SkCodec> codec(SkCodec::NewFromStream(stream.release()));
+ std::unique_ptr<SkCodec> codec = SkCodec::MakeFromStream(std::move(stream));
SkBitmap bitmap;
SkImageInfo info = codec->getInfo().makeWH(kWidth, kHeight)