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 #include "ui/display/chromeos/test/test_native_display_delegate.h" | 5 #include "ui/display/chromeos/test/test_native_display_delegate.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "ui/display/chromeos/test/action_logger.h" | 9 #include "ui/display/chromeos/test/action_logger.h" |
10 #include "ui/display/types/display_mode.h" | 10 #include "ui/display/types/display_mode.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 const DisplaySnapshot& output) { | 127 const DisplaySnapshot& output) { |
128 return std::vector<ui::ColorCalibrationProfile>(); | 128 return std::vector<ui::ColorCalibrationProfile>(); |
129 } | 129 } |
130 | 130 |
131 bool TestNativeDisplayDelegate::SetColorCalibrationProfile( | 131 bool TestNativeDisplayDelegate::SetColorCalibrationProfile( |
132 const DisplaySnapshot& output, | 132 const DisplaySnapshot& output, |
133 ui::ColorCalibrationProfile new_profile) { | 133 ui::ColorCalibrationProfile new_profile) { |
134 return false; | 134 return false; |
135 } | 135 } |
136 | 136 |
137 bool TestNativeDisplayDelegate::SetGammaRamp( | 137 bool TestNativeDisplayDelegate::SetColorCorrection( |
138 const ui::DisplaySnapshot& output, | 138 const ui::DisplaySnapshot& output, |
139 const std::vector<GammaRampRGBEntry>& lut) { | 139 const std::vector<GammaRampRGBEntry>& degamma_lut, |
140 log_->AppendAction(SetGammaRampAction(output, lut)); | 140 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 141 const std::vector<float>& correction_matrix) { |
| 142 log_->AppendAction(SetColorCorrectionAction(output, degamma_lut, gamma_lut, |
| 143 correction_matrix)); |
141 return true; | 144 return true; |
142 } | 145 } |
143 | 146 |
144 void TestNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { | 147 void TestNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { |
145 } | 148 } |
146 | 149 |
147 void TestNativeDisplayDelegate::RemoveObserver( | 150 void TestNativeDisplayDelegate::RemoveObserver( |
148 NativeDisplayObserver* observer) { | 151 NativeDisplayObserver* observer) { |
149 } | 152 } |
150 | 153 |
151 } // namespace test | 154 } // namespace test |
152 } // namespace ui | 155 } // namespace ui |
OLD | NEW |