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

Unified Diff: ui/display/chromeos/display_configurator.cc

Issue 1028563003: Load and apply a vcgt table from an ICC file to the internal display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ozone build Created 5 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
« no previous file with comments | « ui/display/chromeos/display_configurator.h ('k') | ui/display/chromeos/test/action_logger_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/display_configurator.cc
diff --git a/ui/display/chromeos/display_configurator.cc b/ui/display/chromeos/display_configurator.cc
index c577fd024500d99e8d67110a530b584190aab083..0c7295451dc9b95c5069290ef6e33bd2a7f26130 100644
--- a/ui/display/chromeos/display_configurator.cc
+++ b/ui/display/chromeos/display_configurator.cc
@@ -754,6 +754,17 @@ bool DisplayConfigurator::SetColorCalibrationProfile(
return false;
}
+bool DisplayConfigurator::SetGammaRamp(
+ int64_t display_id,
+ const std::vector<GammaRampRGBEntry>& lut) {
+ for (const DisplaySnapshot* display : cached_displays_) {
+ if (display->display_id() == display_id)
+ return native_display_delegate_->SetGammaRamp(*display, lut);
+ }
+
+ return false;
+}
+
void DisplayConfigurator::PrepareForExit() {
configure_display_ = false;
}
« no previous file with comments | « ui/display/chromeos/display_configurator.h ('k') | ui/display/chromeos/test/action_logger_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698