Chromium Code Reviews| Index: ui/display/chromeos/display_configurator.cc |
| diff --git a/ui/display/chromeos/display_configurator.cc b/ui/display/chromeos/display_configurator.cc |
| index 8b1f1f7c22dcb089d4bc5e6d91f2c7b42543ed35..216ef25cccb1efbea8e442eca5dc00ad1251dad1 100644 |
| --- a/ui/display/chromeos/display_configurator.cc |
| +++ b/ui/display/chromeos/display_configurator.cc |
| @@ -743,6 +743,19 @@ bool DisplayConfigurator::SetColorCalibrationProfile( |
| return false; |
| } |
| +bool DisplayConfigurator::SetGammaRamp(int64_t display_id, |
| + const std::vector<uint16_t>& r, |
| + const std::vector<uint16_t>& g, |
| + const std::vector<uint16_t>& b) { |
| + for (const DisplaySnapshot* display : cached_displays_) { |
| + if (display->display_id() == display_id) { |
| + return native_display_delegate_->SetGammaRamp(*display, r, g, b); |
| + } |
|
oshima
2015/04/15 23:56:13
nuke {}
robert.bradford
2015/04/17 16:42:46
Done.
|
| + } |
| + |
| + return false; |
| +} |
| + |
| void DisplayConfigurator::PrepareForExit() { |
| configure_display_ = false; |
| } |