| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 SetColorCorrection(const ui::DisplaySnapshot& output, | 100 bool SetColorCorrection(const ui::DisplaySnapshot& output, |
| 101 const std::vector<GammaRampRGBEntry>& degamma_lut, | 101 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 102 const std::vector<GammaRampRGBEntry>& gamma_lut, | 102 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 103 const std::vector<float>& correction_matrix) override; | 103 const std::vector<float>& correction_matrix) override; |
| 104 void AddObserver(NativeDisplayObserver* observer) override; | 104 void AddObserver(NativeDisplayObserver* observer) override; |
| 105 void RemoveObserver(NativeDisplayObserver* observer) override; | 105 void RemoveObserver(NativeDisplayObserver* observer) override; |
| 106 display::FakeDisplayController* GetFakeDisplayController() override; |
| 106 | 107 |
| 107 private: | 108 private: |
| 108 class HelperDelegateX11; | 109 class HelperDelegateX11; |
| 109 | 110 |
| 110 // Parses all the modes made available by |screen_|. | 111 // Parses all the modes made available by |screen_|. |
| 111 void InitModes(); | 112 void InitModes(); |
| 112 | 113 |
| 113 // Helper method for GetOutputs() that returns an OutputSnapshot struct based | 114 // Helper method for GetOutputs() that returns an OutputSnapshot struct based |
| 114 // on the passed-in information. | 115 // on the passed-in information. |
| 115 DisplaySnapshotX11* InitDisplaySnapshot(RROutput id, | 116 DisplaySnapshotX11* InitDisplaySnapshot(RROutput id, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 171 |
| 171 // A background color used during boot time + multi displays. | 172 // A background color used during boot time + multi displays. |
| 172 uint32_t background_color_argb_; | 173 uint32_t background_color_argb_; |
| 173 | 174 |
| 174 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); | 175 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateX11); |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 } // namespace ui | 178 } // namespace ui |
| 178 | 179 |
| 179 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ | 180 #endif // UI_DISPLAY_CHROMEOS_X11_NATIVE_DISPLAY_DELEGATE_X11_H_ |
| OLD | NEW |