diff options
author | Mike Reed <reed@google.com> | 2017-02-15 15:14:16 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-15 20:51:28 +0000 |
commit | 185130c643f0f6b20dcf14c200074748be282a7e (patch) | |
tree | 049a9162c7ed7c298a4966000b9aa805f75282ad /tests/CodecTest.cpp | |
parent | eb62829a83a0a4f4fdd1230a3c08140e38052602 (diff) |
return and take SkImageGenerator as unique_ptr
BUG=skia:
Change-Id: I4bc11042dd1dbf1eabd40af206027bc65acc3186
Reviewed-on: https://skia-review.googlesource.com/8444
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Matt Sarett <msarett@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tests/CodecTest.cpp')
-rw-r--r-- | tests/CodecTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CodecTest.cpp b/tests/CodecTest.cpp index 8a4d6fc7ab..64232712d7 100644 --- a/tests/CodecTest.cpp +++ b/tests/CodecTest.cpp @@ -436,7 +436,7 @@ static void check(skiatest::Reporter* r, std::unique_ptr<SkStream> stream(GetResourceAsStream(path)); sk_sp<SkData> fullData(SkData::MakeFromStream(stream.get(), stream->getLength())); std::unique_ptr<SkImageGenerator> gen( - SkCodecImageGenerator::NewFromEncodedCodec(fullData.get())); + SkCodecImageGenerator::MakeFromEncodedCodec(fullData)); SkBitmap bm; bm.allocPixels(info); SkAutoLockPixels autoLockPixels(bm); |