| Index: src/codec/SkCodec.cpp
|
| diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp
|
| index c4e488565e698d30c044270458cbf93cc45ec597..f580f6b3d0e734fd7e6086deac5cc685eb7c9920 100644
|
| --- a/src/codec/SkCodec.cpp
|
| +++ b/src/codec/SkCodec.cpp
|
| @@ -90,7 +90,15 @@ SkCodec::RewindState SkCodec::rewindIfNeeded() {
|
| : kCouldNotRewind_RewindState;
|
| }
|
|
|
| -SkScanlineDecoder* SkCodec::getScanlineDecoder(const SkImageInfo& dstInfo) {
|
| - fScanlineDecoder.reset(this->onGetScanlineDecoder(dstInfo));
|
| +SkScanlineDecoder* SkCodec::getScanlineDecoder(const SkImageInfo& dstInfo, const Options* options,
|
| + SkPMColor ctable[], int* ctableCount) {
|
| +
|
| + // Set options.
|
| + Options optsStorage;
|
| + if (NULL == options) {
|
| + options = &optsStorage;
|
| + }
|
| +
|
| + fScanlineDecoder.reset(this->onGetScanlineDecoder(dstInfo, *options, ctable, ctableCount));
|
| return fScanlineDecoder.get();
|
| }
|
|
|