OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
6 #define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 6 #define UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 const GetHDCPStateCallback& callback) override; | 91 const GetHDCPStateCallback& callback) override; |
92 void SetHDCPState(const DisplaySnapshot& output, | 92 void SetHDCPState(const DisplaySnapshot& output, |
93 HDCPState state, | 93 HDCPState state, |
94 const SetHDCPStateCallback& callback) override; | 94 const SetHDCPStateCallback& callback) override; |
95 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( | 95 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( |
96 const DisplaySnapshot& output) override; | 96 const DisplaySnapshot& output) override; |
97 bool SetColorCalibrationProfile(const DisplaySnapshot& output, | 97 bool SetColorCalibrationProfile(const DisplaySnapshot& output, |
98 ColorCalibrationProfile new_profile) override; | 98 ColorCalibrationProfile new_profile) override; |
99 bool SetGammaRamp(const ui::DisplaySnapshot& output, | 99 bool SetGammaRamp(const ui::DisplaySnapshot& output, |
100 const std::vector<GammaRampRGBEntry>& lut) override; | 100 const std::vector<GammaRampRGBEntry>& lut) override; |
| 101 bool SetColorCorrection(const ui::DisplaySnapshot& output, |
| 102 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 103 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 104 const float correction_matrix[9]) override; |
101 void AddObserver(NativeDisplayObserver* observer) override; | 105 void AddObserver(NativeDisplayObserver* observer) override; |
102 void RemoveObserver(NativeDisplayObserver* observer) override; | 106 void RemoveObserver(NativeDisplayObserver* observer) override; |
103 | 107 |
104 private: | 108 private: |
105 class HelperDelegateX11; | 109 class HelperDelegateX11; |
106 | 110 |
107 // Parses all the modes made available by |screen_|. | 111 // Parses all the modes made available by |screen_|. |
108 void InitModes(); | 112 void InitModes(); |
109 | 113 |
110 // Helper method for GetOutputs() that returns an OutputSnapshot struct based | 114 // Helper method for GetOutputs() that returns an OutputSnapshot struct based |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 171 |
168 // A background color used during boot time + multi displays. | 172 // A background color used during boot time + multi displays. |
169 uint32_t background_color_argb_; | 173 uint32_t background_color_argb_; |
170 | 174 |
171 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); | 175 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); |
172 }; | 176 }; |
173 | 177 |
174 } // namespace ui | 178 } // namespace ui |
175 | 179 |
176 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 180 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
OLD | NEW |