| Index: src/codec/SkBmpStandardCodec.cpp
|
| diff --git a/src/codec/SkBmpStandardCodec.cpp b/src/codec/SkBmpStandardCodec.cpp
|
| index 162375a4acfe9aba1c5e20386bd78986545319f5..f699ae5e7f029d116bf61839c2544cd759e8cbc5 100644
|
| --- a/src/codec/SkBmpStandardCodec.cpp
|
| +++ b/src/codec/SkBmpStandardCodec.cpp
|
| @@ -161,8 +161,7 @@ SkCodec::Result SkBmpStandardCodec::onGetPixels(const SkImageInfo& dstInfo,
|
| return true;
|
| }
|
|
|
| -bool SkBmpStandardCodec::initializeSwizzler(const SkImageInfo& dstInfo,
|
| - const Options& opts) {
|
| +bool SkBmpStandardCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& opts) {
|
| // Get swizzler configuration
|
| SkSwizzler::SrcConfig config;
|
| switch (this->bitsPerPixel()) {
|
| @@ -197,8 +196,8 @@ bool SkBmpStandardCodec::initializeSwizzler(const SkImageInfo& dstInfo,
|
| const SkPMColor* colorPtr = get_color_ptr(fColorTable.get());
|
|
|
| // Create swizzler
|
| - fSwizzler.reset(SkSwizzler::CreateSwizzler(config,
|
| - colorPtr, dstInfo, opts.fZeroInitialized, this->getInfo()));
|
| + fSwizzler.reset(SkSwizzler::CreateSwizzler(config, colorPtr, dstInfo, opts.fZeroInitialized,
|
| + this->getInfo(), this->subsetLeft(), this->subsetWidth()));
|
|
|
| if (nullptr == fSwizzler.get()) {
|
| return false;
|
|
|