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..c49c01f99695e8a94a41e4827efe31486dea4151 100644 |
--- a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp |
+++ b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp |
@@ -33,7 +33,7 @@ |
namespace blink { |
GIFImageDecoder::GIFImageDecoder(AlphaOption alphaOption, |
- GammaAndColorProfileOption colorOptions, |
+ ColorSpaceOption colorOptions, |
size_t maxDecodedBytes) |
: ImageDecoder(alphaOption, colorOptions, maxDecodedBytes), |
m_repetitionCount(cAnimationLoopOnce) {} |
@@ -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]; |