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

Unified Diff: ui/compositor/compositor.cc

Issue 2871893002: color: Ensure solid color IOSurface layers are sRGB (Closed)
Patch Set: Fix up deps Created 3 years, 7 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 0eb5780ab89f1df46df35ead0e44d2243dd16351..8447288a0f224db5c0c16d6d87bef20217a54927 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -44,6 +44,7 @@
#include "ui/compositor/scoped_animation_duration_scale_mode.h"
#include "ui/display/display_switches.h"
#include "ui/gfx/icc_profile.h"
+#include "ui/gfx/switches.h"
#include "ui/gl/gl_switches.h"
namespace ui {
@@ -145,7 +146,7 @@ Compositor::Compositor(const cc::FrameSinkId& frame_sink_id,
command_line->HasSwitch(cc::switches::kUIEnableLayerLists);
settings.enable_color_correct_rasterization =
- command_line->HasSwitch(cc::switches::kEnableColorCorrectRendering);
+ command_line->HasSwitch(switches::kEnableColorCorrectRendering);
settings.renderer_settings.enable_color_correct_rendering =
settings.enable_color_correct_rasterization ||
command_line->HasSwitch(switches::kEnableHDR);

Powered by Google App Engine
This is Rietveld 408576698