Index: src/codec/SkRawCodec.cpp |
diff --git a/src/codec/SkRawCodec.cpp b/src/codec/SkRawCodec.cpp |
index 51de2fcec02bd12b9a5a68faefc5add1011001e7..dc638e60e038f39bd05cb33d95237f4ab9947dbd 100644 |
--- a/src/codec/SkRawCodec.cpp |
+++ b/src/codec/SkRawCodec.cpp |
@@ -688,7 +688,7 @@ SkCodec::Result SkRawCodec::onGetPixels(const SkImageInfo& requestedInfo, void* |
} |
SkAutoTDelete<SkSwizzler> swizzler(SkSwizzler::CreateSwizzler( |
- SkSwizzler::kRGB, nullptr, requestedInfo, options)); |
+ this->getEncodedInfo(), nullptr, requestedInfo, options)); |
SkASSERT(swizzler); |
const int width = requestedInfo.width(); |