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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2530503003: Add --enable-true-color-rendering flag (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index 57b2fd8b7c734092b8bf3cf7a647420b789266e1..6c518751ce4e3c3eb3ebe30780edf00cdb91accf 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -344,7 +344,8 @@ cc::LayerTreeSettings RenderWidgetCompositor::GenerateLayerTreeSettings(
settings.renderer_settings.use_gpu_memory_buffer_resources =
compositor_deps->IsGpuMemoryBufferCompositorResourcesEnabled();
settings.enable_color_correct_rendering =
- cmd.HasSwitch(cc::switches::kEnableColorCorrectRendering);
+ cmd.HasSwitch(cc::switches::kEnableColorCorrectRendering) ||
+ cmd.HasSwitch(cc::switches::kEnableTrueColorRendering);
settings.renderer_settings.buffer_to_texture_target_map =
compositor_deps->GetBufferToTextureTargetMap();
settings.image_decode_tasks_enabled =
« no previous file with comments | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698