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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageSource.cpp

Issue 2556723003: Merge color options into ColorBehavior (Closed)
Patch Set: Feedback Created 4 years 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 17ba96b7a0acc478ca833fec0d0e250c724290e9..232b98677e30e1937ca84926abd162bcf657493c 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
@@ -58,14 +58,13 @@ bool ImageSource::setData(PassRefPtr<SharedBuffer> passData,
}
if (RuntimeEnabledFeatures::colorCorrectRenderingEnabled()) {
- m_decoder = DeferredImageDecoder::create(
- data, allDataReceived, ImageDecoder::AlphaPremultiplied,
- ImageDecoder::ColorSpaceTagged, nullptr);
+ m_decoder = DeferredImageDecoder::create(data, allDataReceived,
+ ImageDecoder::AlphaPremultiplied,
+ ColorBehavior::tag());
} else {
m_decoder = DeferredImageDecoder::create(
data, allDataReceived, ImageDecoder::AlphaPremultiplied,
- ImageDecoder::ColorSpaceTransformed,
- ImageDecoder::globalTargetColorSpace());
+ ColorBehavior::transformToGlobalTarget());
}
// Insufficient data is not a failure.

Powered by Google App Engine
This is Rietveld 408576698