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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.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/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 06f0a0d2f85eaa0894951d6d7269823ad7526798..3e005441cf16894891c5fd591148e74e89d4f57c 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
@@ -2751,9 +2751,8 @@ void WebGLImageConversion::ImageExtractor::extractImage(bool premultiplyAlpha,
// Attempt to get raw unpremultiplied image data.
std::unique_ptr<ImageDecoder> decoder(ImageDecoder::create(
m_image->data(), true, ImageDecoder::AlphaNotPremultiplied,
- ignoreColorSpace ? ImageDecoder::ColorSpaceIgnored
- : ImageDecoder::ColorSpaceTransformed,
- ignoreColorSpace ? nullptr : ImageDecoder::globalTargetColorSpace()));
+ ignoreColorSpace ? ColorBehavior::ignore()
+ : ColorBehavior::transformToGlobalTarget()));
if (!decoder || !decoder->frameCount())
return;
ImageFrame* frame = decoder->frameBufferAtIndex(0);

Powered by Google App Engine
This is Rietveld 408576698