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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageSource.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/graphics/ImageSource.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
index 18ddce8b77d606926c5c4dce2f7dd673ce4bdc1a..d0b044c54bcc34fd8303958de092df46ebbcf119 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
@@ -56,9 +56,9 @@ bool ImageSource::setData(PassRefPtr<SharedBuffer> passData,
return true;
}
- m_decoder = DeferredImageDecoder::create(
- data, allDataReceived, ImageDecoder::AlphaPremultiplied,
- ImageDecoder::GammaAndColorProfileApplied);
+ m_decoder = DeferredImageDecoder::create(data, allDataReceived,
+ ImageDecoder::AlphaPremultiplied,
+ ImageDecoder::ColorSpaceApplied);
// Insufficient data is not a failure.
return m_decoder || !ImageDecoder::hasSufficientDataToSniffImageType(*data);
@@ -73,7 +73,7 @@ bool ImageSource::isSizeAvailable() {
}
bool ImageSource::hasColorProfile() const {
- return m_decoder && m_decoder->hasColorProfile();
+ return m_decoder && m_decoder->hasColorSpace();
}
IntSize ImageSource::size(

Powered by Google App Engine
This is Rietveld 408576698