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

Unified Diff: ui/compositor/compositor.cc

Issue 2328133002: Add cc::LayerTreeSettings for color correct rendering (Closed)
Patch Set: Created 4 years, 3 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
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 540c9d7070be99f76c706f768567468ba43a7a77..216f5368329f7911747d10ab7f93a19205806dd6 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -158,6 +158,9 @@ Compositor::Compositor(ui::ContextFactory* context_factory,
settings.use_layer_lists =
command_line->HasSwitch(cc::switches::kUIEnableLayerLists);
+ settings.renderer_settings.enable_color_correct_rendering =
+ command_line->HasSwitch(cc::switches::kEnableColorCorrectRendering);
+
// UI compositor always uses partial raster if not using zero-copy. Zero copy
// doesn't currently support partial raster.
settings.use_partial_raster = !settings.use_zero_copy;
« cc/output/renderer_settings.h ('K') | « content/renderer/gpu/render_widget_compositor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698