Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1202)

Unified Diff: third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp

Issue 2523943002: Explicitly specify target color space to ImageDecoder at creation (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 3f056258bc017e7f1d0aff16327a45ebe7d4536e..ac9e4076da8987fb805d959ee6c1738a7aa5205a 100644
--- a/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageReader.cpp
@@ -122,7 +122,7 @@ bool BMPImageReader::decodeBMP(bool onlySize) {
if (m_buffer->getStatus() == ImageFrame::FrameEmpty) {
if (!m_buffer->setSizeAndColorSpace(m_parent->size().width(),
m_parent->size().height(),
- m_parent->colorSpace())) {
+ m_parent->colorSpaceForSkImages())) {
return m_parent->setFailed(); // Unable to allocate.
}
m_buffer->setStatus(ImageFrame::FramePartial);

Powered by Google App Engine
This is Rietveld 408576698