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

Unified Diff: ash/display/display_color_manager_chromeos.cc

Issue 1914343003: Reland: ash: reset color management when new screens are hotplugged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: ash/display/display_color_manager_chromeos.cc
diff --git a/ash/display/display_color_manager_chromeos.cc b/ash/display/display_color_manager_chromeos.cc
index 0f382548f312abec881ad52ecf443eecfce9be27..1c3685c284aa23a76f473982208aaf7806970233 100644
--- a/ash/display/display_color_manager_chromeos.cc
+++ b/ash/display/display_color_manager_chromeos.cc
@@ -163,7 +163,14 @@ DisplayColorManager::~DisplayColorManager() {
void DisplayColorManager::OnDisplayModeChanged(
const ui::DisplayConfigurator::DisplayStateList& display_states) {
+ ColorCalibrationData reset_calibration;
+
for (const ui::DisplaySnapshot* state : display_states) {
+ // Ensure we always reset the configuration before setting a new one.
+ configurator_->SetColorCorrection(
+ state->display_id(), reset_calibration.degamma_lut,
robert.bradford 2016/04/27 12:29:46 Don't use the ColorCalibrationData to just get thr
+ reset_calibration.gamma_lut, reset_calibration.correction_matrix);
+
if (calibration_map_[state->product_id()]) {
ApplyDisplayColorCalibration(state->display_id(), state->product_id());
} else {
« no previous file with comments | « no previous file | ash/display/display_color_manager_chromeos_unittest.cc » ('j') | ui/ozone/platform/drm/gpu/drm_device.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698