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 3f481173787917ab68616a545a1a43b631e4d124..0ee27a6cd0630716f58445f3d3dfc4242a98b676 100644 |
--- a/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp |
+++ b/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp |
@@ -119,7 +119,7 @@ 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->setSize(m_parent->size().width(), m_parent->size().height())) |
+ if (!m_buffer->setSizeAndColorProfile(m_parent->size().width(), m_parent->size().height(), ImageFrame::ICCProfile())) |
return m_parent->setFailed(); // Unable to allocate. |
m_buffer->setStatus(ImageFrame::FramePartial); |
// setSize() calls eraseARGB(), which resets the alpha flag, so we force |