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); |