From ab052495c02e7552aeacf7d82c28f9d72eba6564 Mon Sep 17 00:00:00 2001 From: "robert.bradford" Date: Wed, 6 May 2015 04:09:56 -0700 Subject: Reland "Load and apply a vcgt table from an ICC file to the internal display" When the command line switch --internal-display-color-profile-file is provided load the given ICC file using qcms and extract the VCGT data. Use this VCGT data to apply a gamma ramp to change the output on the internal display using drmModeCrtcSetGammaRamp. Original CL: https://codereview.chromium.org/1028563003/ Reason for reland: Linux ChromiumOS GN (dbg) build broke (missing qcms dep in ash/BUILD.gn) BUG=471749 TEST=On a link_freon device add the command line option to load a sample ICC file (e.g. Bluish.icc to give a blue tint) and observe on startup that the internal display is blue tinted. TBR=sievers@chromium.org Review URL: https://codereview.chromium.org/1119113004 Cr-Commit-Position: refs/heads/master@{#328514} --- chromeos/chromeos_switches.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chromeos/chromeos_switches.cc') diff --git a/chromeos/chromeos_switches.cc b/chromeos/chromeos_switches.cc index b3c074e9..586f7d9 100644 --- a/chromeos/chromeos_switches.cc +++ b/chromeos/chromeos_switches.cc @@ -210,6 +210,10 @@ const char kHostPairingOobe[] = "host-pairing-oobe"; const char kIgnoreUserProfileMappingForTests[] = "ignore-user-profile-mapping-for-tests"; +// File to load internal display ICC file from. +const char kInternalDisplayColorProfileFile[] = + "internal-display-color-profile-file"; + // Enables Chrome-as-a-login-manager behavior. const char kLoginManager[] = "login-manager"; -- cgit v1.1