fix legacy compile

Bug: skia:
Change-Id: I81953c3c980ef88b168b3a9f9ce94445d0a61218
Reviewed-on: https://skia-review.googlesource.com/26623
Reviewed-by: Mike Reed <reed@google.com>
This commit is contained in:
Mike Reed 2017-07-25 15:06:51 -04:00
parent 5127fcba57
commit 816afd83f4

View File

@ -621,7 +621,7 @@ std::vector<SkCodec::FrameInfo> SkCodec::getFrameInfo() {
#ifdef SK_SUPPORT_LEGACY_CODEC_NEW
SkCodec* SkCodec::NewFromStream(SkStream* str, Result* res, SkPngChunkReader* chunk) {
return MakeFromStream(std::unique_ptr<SkStream*>(str), res, chunk).release();
return MakeFromStream(std::unique_ptr<SkStream>(str), res, chunk).release();
}
SkCodec* SkCodec::NewFromData(sk_sp<SkData> data, SkPngChunkReader* chunk) {
return MakeFromData(std::move(data), chunk).release();