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

Unified Diff: ui/display/display_change_notifier.cc

Issue 2963223002: propagate display color space changes (Closed)
Patch Set: 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 | « no previous file | ui/display/display_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/display_change_notifier.cc
diff --git a/ui/display/display_change_notifier.cc b/ui/display/display_change_notifier.cc
index 626c86eee49b716974d2b5078119eaa401add5cd..3a5cfd0c8308540648405e70630b3a41a7c76a49 100644
--- a/ui/display/display_change_notifier.cc
+++ b/ui/display/display_change_notifier.cc
@@ -80,6 +80,9 @@ void DisplayChangeNotifier::NotifyDisplaysChanged(
if (new_it->device_scale_factor() != old_it->device_scale_factor())
metrics |= DisplayObserver::DISPLAY_METRIC_DEVICE_SCALE_FACTOR;
+ if (new_it->color_space() != old_it->color_space())
+ metrics |= DisplayObserver::DISPLAY_METRIC_COLOR_SPACE;
+
if (metrics != DisplayObserver::DISPLAY_METRIC_NONE) {
for (DisplayObserver& observer : observer_list_)
observer.OnDisplayMetricsChanged(*new_it, metrics);
« no previous file with comments | « no previous file | ui/display/display_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698