Chromium Code Reviews| Index: third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp |
| diff --git a/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp b/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp |
| index a3a488f30d549328f8355fb75b56a66ea9daf13e..3f056258bc017e7f1d0aff16327a45ebe7d4536e 100644 |
| --- a/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp |
| +++ b/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp |
| @@ -121,8 +121,10 @@ bool BMPImageReader::decodeBMP(bool onlySize) { |
| ASSERT(m_buffer); // Parent should set this before asking us to decode! |
| if (m_buffer->getStatus() == ImageFrame::FrameEmpty) { |
| if (!m_buffer->setSizeAndColorSpace(m_parent->size().width(), |
| - m_parent->size().height(), nullptr)) |
| + m_parent->size().height(), |
| + m_parent->colorSpace())) { |
|
Justin Novosad
2016/10/31 14:55:13
don't we want to do this only if colorCorrectRende
ccameron
2016/10/31 18:10:18
Tagging input color spaces should have no effect,
|
| return m_parent->setFailed(); // Unable to allocate. |
| + } |
| m_buffer->setStatus(ImageFrame::FramePartial); |
| // setSize() calls eraseARGB(), which resets the alpha flag, so we force |
| // it back to false here. We'll set it true below in all cases where |