Use Options object passed to startScanlineDecode
authorscroggo <scroggo@google.com>
Mon, 6 Jun 2016 18:48:05 +0000 (11:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 6 Jun 2016 18:48:05 +0000 (11:48 -0700)
This->options() has not been updated to include the latest settings.

Originally brought up in crrev.com/1997703003, which has been reverted.
This is not really related to that change anyway, so separating it out.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2046493004

Review-Url: https://codereview.chromium.org/2046493004

src/codec/SkGifCodec.cpp

index 75e9d63fa72ad3e6099341db39eb7de376d0b470..dcc25b8dfd83986724deec6ae9d86b141a46db24 100644 (file)
@@ -520,7 +520,7 @@ uint32_t SkGifCodec::onGetFillValue(SkColorType colorType) const {
 
 SkCodec::Result SkGifCodec::onStartScanlineDecode(const SkImageInfo& dstInfo,
         const SkCodec::Options& opts, SkPMColor inputColorPtr[], int* inputColorCount) {
-    return this->prepareToDecode(dstInfo, inputColorPtr, inputColorCount, this->options());
+    return this->prepareToDecode(dstInfo, inputColorPtr, inputColorCount, opts);
 }
 
 void SkGifCodec::handleScanlineFrame(int count, int* rowsBeforeFrame, int* rowsInFrame) {