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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 2954793002: color: Replace more instances of ICCProfile with ColorSpace (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 2d02a4f5b06820523b396f4892a2b8d9d584f130..9ae1ad4b019cb2d0513438144ccb8248a3fa3c42 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -680,10 +680,8 @@ bool RenderWidgetHostImpl::GetResizeParams(ResizeParams* resize_params) {
// coloring.
// TODO(ccameron): Disable this once color correct rasterization is functional
// https://crbug.com/701942
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableHDR)) {
- gfx::ColorSpace::CreateSRGB().GetICCProfile(
- &resize_params->screen_info.icc_profile);
- }
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableHDR))
+ resize_params->screen_info.color_space = gfx::ColorSpace::CreateSRGB();
if (delegate_) {
resize_params->is_fullscreen_granted =
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698