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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 void CreateFrameBuffer(const gfx::Size& size) override; | 90 void CreateFrameBuffer(const gfx::Size& size) override; |
91 void GetHDCPState(const DisplaySnapshot& output, | 91 void GetHDCPState(const DisplaySnapshot& output, |
92 const GetHDCPStateCallback& callback) override; | 92 const GetHDCPStateCallback& callback) override; |
93 void SetHDCPState(const DisplaySnapshot& output, | 93 void SetHDCPState(const DisplaySnapshot& output, |
94 HDCPState state, | 94 HDCPState state, |
95 const SetHDCPStateCallback& callback) override; | 95 const SetHDCPStateCallback& callback) override; |
96 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( | 96 std::vector<ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( |
97 const DisplaySnapshot& output) override; | 97 const DisplaySnapshot& output) override; |
98 bool SetColorCalibrationProfile(const DisplaySnapshot& output, | 98 bool SetColorCalibrationProfile(const DisplaySnapshot& output, |
99 ColorCalibrationProfile new_profile) override; | 99 ColorCalibrationProfile new_profile) override; |
100 bool SetGammaRamp(const ui::DisplaySnapshot& output, | 100 bool SetColorCorrection(const ui::DisplaySnapshot& output, |
101 const std::vector<GammaRampRGBEntry>& lut) override; | 101 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 102 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 103 const std::vector<float>& correction_matrix) override; |
102 void AddObserver(NativeDisplayObserver* observer) override; | 104 void AddObserver(NativeDisplayObserver* observer) override; |
103 void RemoveObserver(NativeDisplayObserver* observer) override; | 105 void RemoveObserver(NativeDisplayObserver* observer) override; |
104 | 106 |
105 private: | 107 private: |
106 class HelperDelegateX11; | 108 class HelperDelegateX11; |
107 | 109 |
108 // Parses all the modes made available by |screen_|. | 110 // Parses all the modes made available by |screen_|. |
109 void InitModes(); | 111 void InitModes(); |
110 | 112 |
111 // Helper method for GetOutputs() that returns an OutputSnapshot struct based | 113 // Helper method for GetOutputs() that returns an OutputSnapshot struct based |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 170 |
169 // A background color used during boot time + multi displays. | 171 // A background color used during boot time + multi displays. |
170 uint32_t background_color_argb_; | 172 uint32_t background_color_argb_; |
171 | 173 |
172 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); | 174 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); |
173 }; | 175 }; |
174 | 176 |
175 } // namespace ui | 177 } // namespace ui |
176 | 178 |
177 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 179 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
OLD | NEW |