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_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ |
6 #define UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ | 6 #define UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void SetHDCPState(const DisplaySnapshot& output, | 69 void SetHDCPState(const DisplaySnapshot& output, |
70 HDCPState state, | 70 HDCPState state, |
71 const SetHDCPStateCallback& callback) override; | 71 const SetHDCPStateCallback& callback) override; |
72 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( | 72 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( |
73 const DisplaySnapshot& output) override; | 73 const DisplaySnapshot& output) override; |
74 bool SetColorCalibrationProfile( | 74 bool SetColorCalibrationProfile( |
75 const DisplaySnapshot& output, | 75 const DisplaySnapshot& output, |
76 ui::ColorCalibrationProfile new_profile) override; | 76 ui::ColorCalibrationProfile new_profile) override; |
77 bool SetGammaRamp(const ui::DisplaySnapshot& output, | 77 bool SetGammaRamp(const ui::DisplaySnapshot& output, |
78 const std::vector<GammaRampRGBEntry>& lut) override; | 78 const std::vector<GammaRampRGBEntry>& lut) override; |
| 79 bool SetColorCorrection(const ui::DisplaySnapshot& output, |
| 80 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 81 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 82 const float correction_matrix[9]) override; |
79 void AddObserver(NativeDisplayObserver* observer) override; | 83 void AddObserver(NativeDisplayObserver* observer) override; |
80 void RemoveObserver(NativeDisplayObserver* observer) override; | 84 void RemoveObserver(NativeDisplayObserver* observer) override; |
81 | 85 |
82 private: | 86 private: |
83 bool Configure(const DisplaySnapshot& output, | 87 bool Configure(const DisplaySnapshot& output, |
84 const DisplayMode* mode, | 88 const DisplayMode* mode, |
85 const gfx::Point& origin); | 89 const gfx::Point& origin); |
86 | 90 |
87 // Outputs to be returned by GetDisplays(). | 91 // Outputs to be returned by GetDisplays(). |
88 std::vector<DisplaySnapshot*> outputs_; | 92 std::vector<DisplaySnapshot*> outputs_; |
(...skipping 17 matching lines...) Expand all Loading... |
106 | 110 |
107 ActionLogger* log_; // Not owned. | 111 ActionLogger* log_; // Not owned. |
108 | 112 |
109 DISALLOW_COPY_AND_ASSIGN(TestNativeDisplayDelegate); | 113 DISALLOW_COPY_AND_ASSIGN(TestNativeDisplayDelegate); |
110 }; | 114 }; |
111 | 115 |
112 } // namespace test | 116 } // namespace test |
113 } // namespace ui | 117 } // namespace ui |
114 | 118 |
115 #endif // UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ | 119 #endif // UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_ |
OLD | NEW |