summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/image-decoders/image_decoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/image-decoders/image_decoder.cc')
-rw-r--r--chromium/third_party/blink/renderer/platform/image-decoders/image_decoder.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/platform/image-decoders/image_decoder.cc b/chromium/third_party/blink/renderer/platform/image-decoders/image_decoder.cc
index b7730cabc07..0f7452007d2 100644
--- a/chromium/third_party/blink/renderer/platform/image-decoders/image_decoder.cc
+++ b/chromium/third_party/blink/renderer/platform/image-decoders/image_decoder.cc
@@ -69,6 +69,7 @@ std::unique_ptr<ImageDecoder> ImageDecoder::Create(
scoped_refptr<SegmentReader> data,
bool data_complete,
AlphaOption alpha_option,
+ HighBitDepthDecodingOption high_bit_depth_decoding_option,
const ColorBehavior& color_behavior,
const SkISize& desired_size) {
// At least kLongestSignatureLength bytes are needed to sniff the signature.
@@ -97,8 +98,9 @@ std::unique_ptr<ImageDecoder> ImageDecoder::Create(
decoder.reset(
new JPEGImageDecoder(alpha_option, color_behavior, max_decoded_bytes));
} else if (MatchesPNGSignature(contents)) {
- decoder.reset(
- new PNGImageDecoder(alpha_option, color_behavior, max_decoded_bytes));
+ decoder.reset(new PNGImageDecoder(alpha_option,
+ high_bit_depth_decoding_option,
+ color_behavior, max_decoded_bytes));
} else if (MatchesGIFSignature(contents)) {
decoder.reset(
new GIFImageDecoder(alpha_option, color_behavior, max_decoded_bytes));