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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp

Issue 2454123002: Refactor image decoders to use 'colorSpace' instead of 'colorProfile' (Closed)
Patch Set: Created 4 years, 2 months 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/gif/GIFImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
index f7fe698b6f5aed8e06625e02fbdb7a22301064af..8bfde5ae48c752e17b05505415416430eb37e307 100644
--- a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
@@ -369,8 +369,7 @@ bool GIFImageDecoder::initFrameBuffer(size_t frameIndex) {
size_t requiredPreviousFrameIndex = buffer->requiredPreviousFrameIndex();
if (requiredPreviousFrameIndex == kNotFound) {
// This frame doesn't rely on any previous data.
- if (!buffer->setSizeAndColorProfile(size().width(), size().height(),
- ImageFrame::ICCProfile()))
+ if (!buffer->setSizeAndColorSpace(size().width(), size().height(), nullptr))
return setFailed();
} else {
ImageFrame* prevBuffer = &m_frameBufferCache[requiredPreviousFrameIndex];

Powered by Google App Engine
This is Rietveld 408576698