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

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

Issue 2559013002: Add ColorBehavior to blink::Image draw methods (Closed)
Patch Set: Rebase 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3e005441cf16894891c5fd591148e74e89d4f57c..35d76613438f133af8ce1ce1f769c0a6db1419d4 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
@@ -2739,7 +2739,10 @@ void WebGLImageConversion::ImageExtractor::extractImage(bool premultiplyAlpha,
if (!m_image)
return;
- sk_sp<SkImage> skiaImage = m_image->imageForCurrentFrame();
+ // TODO(ccameron): WebGL should operate in sRGB.
+ // https://crbug.com/672299
+ sk_sp<SkImage> skiaImage =
+ m_image->imageForCurrentFrame(ColorBehavior::transformToGlobalTarget());
SkImageInfo info = skiaImage ? SkImageInfo::MakeN32Premul(m_image->width(),
m_image->height())
: SkImageInfo::MakeUnknown();
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698