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

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

Issue 2727133002: Remove ColorBehavior argument to Image::imageForCurrentFrame (Closed)
Patch Set: Rebase Created 3 years, 9 months 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 35d76613438f133af8ce1ce1f769c0a6db1419d4..3e005441cf16894891c5fd591148e74e89d4f57c 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
@@ -2739,10 +2739,7 @@ void WebGLImageConversion::ImageExtractor::extractImage(bool premultiplyAlpha,
if (!m_image)
return;
- // TODO(ccameron): WebGL should operate in sRGB.
- // https://crbug.com/672299
- sk_sp<SkImage> skiaImage =
- m_image->imageForCurrentFrame(ColorBehavior::transformToGlobalTarget());
+ sk_sp<SkImage> skiaImage = m_image->imageForCurrentFrame();
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