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

Unified Diff: content/browser/renderer_host/render_view_host_impl.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
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 fc1f18772cea21eada1fe8ba4c1007a7653c45fb..a178f9a6d846766336c6f325b513ef6e7ab040f1 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -497,7 +497,11 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() {
command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges);
prefs.color_correct_rendering_enabled =
- command_line.HasSwitch(cc::switches::kEnableColorCorrectRendering);
+ command_line.HasSwitch(cc::switches::kEnableColorCorrectRendering) ||
+ command_line.HasSwitch(cc::switches::kEnableTrueColorRendering);
+
+ prefs.true_color_rendering_enabled =
+ command_line.HasSwitch(cc::switches::kEnableTrueColorRendering);
prefs.spatial_navigation_enabled = command_line.HasSwitch(
switches::kEnableSpatialNavigation);
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698