Index: src/codec/SkBmpMaskCodec.cpp |
diff --git a/src/codec/SkBmpMaskCodec.cpp b/src/codec/SkBmpMaskCodec.cpp |
index 336698d319d2e8f96c10a2b60da755040535f150..2bc47b51263362a5b00def4de0e2eedd13f6447b 100644 |
--- a/src/codec/SkBmpMaskCodec.cpp |
+++ b/src/codec/SkBmpMaskCodec.cpp |
@@ -58,10 +58,10 @@ SkCodec::Result SkBmpMaskCodec::onGetPixels(const SkImageInfo& dstInfo, |
return kSuccess; |
} |
-bool SkBmpMaskCodec::initializeSwizzler(const SkImageInfo& dstInfo) { |
+bool SkBmpMaskCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& options) { |
// Create the swizzler |
- fMaskSwizzler.reset(SkMaskSwizzler::CreateMaskSwizzler( |
- dstInfo, this->getInfo(), fMasks, this->bitsPerPixel())); |
+ fMaskSwizzler.reset(SkMaskSwizzler::CreateMaskSwizzler(dstInfo, this->getInfo(), fMasks, |
+ this->bitsPerPixel(), options)); |
if (nullptr == fMaskSwizzler.get()) { |
return false; |
@@ -73,7 +73,7 @@ bool SkBmpMaskCodec::initializeSwizzler(const SkImageInfo& dstInfo) { |
SkCodec::Result SkBmpMaskCodec::prepareToDecode(const SkImageInfo& dstInfo, |
const SkCodec::Options& options, SkPMColor inputColorPtr[], int* inputColorCount) { |
// Initialize a the mask swizzler |
- if (!this->initializeSwizzler(dstInfo)) { |
+ if (!this->initializeSwizzler(dstInfo, options)) { |
SkCodecPrintf("Error: cannot initialize swizzler.\n"); |
return SkCodec::kInvalidConversion; |
} |