| Index: src/codec/SkIcoCodec.cpp
|
| diff --git a/src/codec/SkIcoCodec.cpp b/src/codec/SkIcoCodec.cpp
|
| index d74c150ff5c8e2c5cc38380b47d8316dca440d98..0e81b72407218778b9d469e72b95941149b83309 100644
|
| --- a/src/codec/SkIcoCodec.cpp
|
| +++ b/src/codec/SkIcoCodec.cpp
|
| @@ -168,20 +168,22 @@ SkCodec* SkIcoCodec::NewFromStream(SkStream* stream) {
|
| maxIndex = i;
|
| }
|
| }
|
| - SkImageInfo info = codecs->operator[](maxIndex)->getInfo();
|
| + int width = codecs->operator[](maxIndex)->getInfo().width();
|
| + int height = codecs->operator[](maxIndex)->getInfo().height();
|
| + SkEncodedInfo info = codecs->operator[](maxIndex)->getEncodedInfo();
|
|
|
| // Note that stream is owned by the embedded codec, the ico does not need
|
| // direct access to the stream.
|
| - return new SkIcoCodec(info, codecs.release());
|
| + return new SkIcoCodec(width, height, info, codecs.release());
|
| }
|
|
|
| /*
|
| * Creates an instance of the decoder
|
| * Called only by NewFromStream
|
| */
|
| -SkIcoCodec::SkIcoCodec(const SkImageInfo& info,
|
| +SkIcoCodec::SkIcoCodec(int width, int height, const SkEncodedInfo& info,
|
| SkTArray<SkAutoTDelete<SkCodec>, true>* codecs)
|
| - : INHERITED(info, nullptr)
|
| + : INHERITED(width, height, info, nullptr)
|
| , fEmbeddedCodecs(codecs)
|
| , fCurrScanlineCodec(nullptr)
|
| {}
|
|
|