| Index: content/browser/renderer_host/render_view_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
|
| index 752c352ef24b4558a268792a59dc5bf41eaac24b..27f9a45fc1c1a884b0473ebf7d8966ece433723b 100644
|
| --- a/content/browser/renderer_host/render_view_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_view_host_impl.cc
|
| @@ -316,6 +316,15 @@ bool RenderViewHostImpl::CreateRenderView(
|
| params->page_zoom_level = delegate_->GetPendingPageZoomLevel();
|
| params->image_decode_color_space = gfx::ICCProfile::FromBestMonitor();
|
|
|
| + // Pretend that HDR displays are sRGB so that we do not have inconsistent
|
| + // 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(
|
| + ¶ms->image_decode_color_space);
|
| + }
|
| +
|
| GetWidget()->GetResizeParams(¶ms->initial_size);
|
| GetWidget()->SetInitialRenderSizeParams(params->initial_size);
|
|
|
|
|