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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp

Issue 2523943002: Explicitly specify target color space to ImageDecoder at creation (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/gpu/WebGLImageConversion.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
index a13f26e72adea0c470ea0d7b7593747073c54a26..cf685da5a19f7c3800c1d1874e43bc185aff5c58 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
@@ -2748,7 +2748,8 @@ void WebGLImageConversion::ImageExtractor::extractImage(bool premultiplyAlpha,
std::unique_ptr<ImageDecoder> decoder(ImageDecoder::create(
m_image->data(), true, ImageDecoder::AlphaNotPremultiplied,
ignoreColorSpace ? ImageDecoder::ColorSpaceIgnored
- : ImageDecoder::ColorSpaceApplied));
+ : ImageDecoder::ColorSpaceTransformed,
+ ignoreColorSpace ? nullptr : ImageDecoder::globalTargetColorSpace()));
if (!decoder || !decoder->frameCount())
return;
ImageFrame* frame = decoder->frameBufferAtIndex(0);

Powered by Google App Engine
This is Rietveld 408576698