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 70d81675e4b9372fc39d0c260ed4e12582b197fa..a3a488f30d549328f8355fb75b56a66ea9daf13e 100644 |
--- a/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp |
+++ b/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp |
@@ -120,9 +120,8 @@ bool BMPImageReader::decodeBMP(bool onlySize) { |
// Initialize the framebuffer if needed. |
ASSERT(m_buffer); // Parent should set this before asking us to decode! |
if (m_buffer->getStatus() == ImageFrame::FrameEmpty) { |
- if (!m_buffer->setSizeAndColorProfile(m_parent->size().width(), |
- m_parent->size().height(), |
- ImageFrame::ICCProfile())) |
+ if (!m_buffer->setSizeAndColorSpace(m_parent->size().width(), |
+ m_parent->size().height(), nullptr)) |
return m_parent->setFailed(); // Unable to allocate. |
m_buffer->setStatus(ImageFrame::FramePartial); |
// setSize() calls eraseARGB(), which resets the alpha flag, so we force |