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_TYPES_NATIVE_DISPLAY_DELEGATE_H_ | 5 #ifndef UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ |
6 #define UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ | 6 #define UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // Gets the available list of color calibrations. | 100 // Gets the available list of color calibrations. |
101 virtual std::vector<ui::ColorCalibrationProfile> | 101 virtual std::vector<ui::ColorCalibrationProfile> |
102 GetAvailableColorCalibrationProfiles( | 102 GetAvailableColorCalibrationProfiles( |
103 const ui::DisplaySnapshot& output) = 0; | 103 const ui::DisplaySnapshot& output) = 0; |
104 | 104 |
105 // Sets the color calibration of |output| to |new_profile|. | 105 // Sets the color calibration of |output| to |new_profile|. |
106 virtual bool SetColorCalibrationProfile( | 106 virtual bool SetColorCalibrationProfile( |
107 const ui::DisplaySnapshot& output, | 107 const ui::DisplaySnapshot& output, |
108 ui::ColorCalibrationProfile new_profile) = 0; | 108 ui::ColorCalibrationProfile new_profile) = 0; |
109 | 109 |
110 // Set the gamma ramp for the display. | 110 // Set the gamma tables and corection matrix for the display. |
111 virtual bool SetGammaRamp(const ui::DisplaySnapshot& output, | 111 virtual bool SetColorCorrection( |
112 const std::vector<GammaRampRGBEntry>& lut) = 0; | 112 const ui::DisplaySnapshot& output, |
| 113 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 114 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 115 const std::vector<float>& correction_matrix) = 0; |
113 | 116 |
114 virtual void AddObserver(NativeDisplayObserver* observer) = 0; | 117 virtual void AddObserver(NativeDisplayObserver* observer) = 0; |
115 | 118 |
116 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0; | 119 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0; |
117 }; | 120 }; |
118 | 121 |
119 } // namespace ui | 122 } // namespace ui |
120 | 123 |
121 #endif // UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ | 124 #endif // UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ |
OLD | NEW |