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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp

Issue 2454123002: Refactor image decoders to use 'colorSpace' instead of 'colorProfile' (Closed)
Patch Set: Fix legacy ImageFrame 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/ico/ICOImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp
index 5fd0546ad1d8413cc0f5339591203201b0a7b083..2cb6eab842728f80179b5f961618b6ded839053e 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/ico/ICOImageDecoder.cpp
@@ -45,13 +45,13 @@ static const size_t sizeOfDirectory = 6;
static const size_t sizeOfDirEntry = 16;
ICOImageDecoder::ICOImageDecoder(AlphaOption alphaOption,
- GammaAndColorProfileOption colorOptions,
+ ColorSpaceOption colorOptions,
size_t maxDecodedBytes)
: ImageDecoder(alphaOption, colorOptions, maxDecodedBytes),
m_fastReader(nullptr),
m_decodedOffset(0),
m_dirEntriesCount(0),
- m_gammaAndColorProfileOption(colorOptions) {}
+ m_colorSpaceOption(colorOptions) {}
ICOImageDecoder::~ICOImageDecoder() {}
@@ -214,8 +214,8 @@ bool ICOImageDecoder::decodeAtIndex(size_t index) {
AlphaOption alphaOption =
m_premultiplyAlpha ? AlphaPremultiplied : AlphaNotPremultiplied;
m_pngDecoders[index] = wrapUnique(
- new PNGImageDecoder(alphaOption, m_gammaAndColorProfileOption,
- m_maxDecodedBytes, dirEntry.m_imageOffset));
+ new PNGImageDecoder(alphaOption, m_colorSpaceOption, m_maxDecodedBytes,
+ dirEntry.m_imageOffset));
setDataForPNGDecoderAtIndex(index);
}
// Fail if the size the PNGImageDecoder calculated does not match the size

Powered by Google App Engine
This is Rietveld 408576698