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

Unified Diff: ui/gfx/mac/io_surface.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/gfx/color_space_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/mac/io_surface.cc
diff --git a/ui/gfx/mac/io_surface.cc b/ui/gfx/mac/io_surface.cc
index 8fb160325860807f469635c5f40356585072e623..ee10bf3efc3dae76a22ec91b2fe9075121e453fc 100644
--- a/ui/gfx/mac/io_surface.cc
+++ b/ui/gfx/mac/io_surface.cc
@@ -210,8 +210,7 @@ IOSurfaceRef CreateIOSurface(const gfx::Size& size, gfx::BufferFormat format) {
// Ensure that all IOSurfaces start as sRGB when color correct rendering
// is enabled.
static bool color_correct_rendering_enabled =
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableColorCorrectRendering);
+ base::FeatureList::IsEnabled(features::kColorCorrectRendering);
if (color_correct_rendering_enabled)
force_color_space = true;
« no previous file with comments | « ui/gfx/color_space_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698