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

Unified Diff: ui/compositor/compositor_util.cc

Issue 2945453002: color: Use base::Feature to control color correct rendering (Closed)
Patch Set: Add histogram enum 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 | « ui/compositor/compositor.cc ('k') | ui/display/mac/screen_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor_util.cc
diff --git a/ui/compositor/compositor_util.cc b/ui/compositor/compositor_util.cc
index 20231eb09c35e0cffc6276e33ea3df7f752c5cb0..0ced0a7e6e56e76f233a7ead518c88880e418a34 100644
--- a/ui/compositor/compositor_util.cc
+++ b/ui/compositor/compositor_util.cc
@@ -29,7 +29,7 @@ cc::RendererSettings CreateRendererSettings(uint32_t (
renderer_settings.show_overdraw_feedback =
command_line->HasSwitch(cc::switches::kShowOverdrawFeedback);
renderer_settings.enable_color_correct_rendering =
- command_line->HasSwitch(switches::kEnableColorCorrectRendering) ||
+ base::FeatureList::IsEnabled(features::kColorCorrectRendering) ||
command_line->HasSwitch(switches::kEnableHDR);
// Populate buffer_to_texture_target_map for all buffer usage/formats.
for (int usage_idx = 0; usage_idx <= static_cast<int>(gfx::BufferUsage::LAST);
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/display/mac/screen_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698