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_DISPLAY_CONFIGURATOR_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ | 6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 int64_t display_id); | 262 int64_t display_id); |
263 | 263 |
264 // Updates the color calibration to |new_profile|. | 264 // Updates the color calibration to |new_profile|. |
265 bool SetColorCalibrationProfile(int64_t display_id, | 265 bool SetColorCalibrationProfile(int64_t display_id, |
266 ui::ColorCalibrationProfile new_profile); | 266 ui::ColorCalibrationProfile new_profile); |
267 | 267 |
268 // Sets the gamma ramp for |display_id| to the values in |lut|. | 268 // Sets the gamma ramp for |display_id| to the values in |lut|. |
269 bool SetGammaRamp(int64_t display_id, | 269 bool SetGammaRamp(int64_t display_id, |
270 const std::vector<GammaRampRGBEntry>& lut); | 270 const std::vector<GammaRampRGBEntry>& lut); |
271 | 271 |
| 272 // Sets the gamma, degamma and correction matrix for |display_id| to the |
| 273 // values in |degamma_lut|, |gamma_lut| and |correction_matrix|. |
| 274 bool SetColorCorrection(int64_t display_id, |
| 275 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 276 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 277 const float correction_matrix[9]); |
| 278 |
272 private: | 279 private: |
273 class DisplayLayoutManagerImpl; | 280 class DisplayLayoutManagerImpl; |
274 | 281 |
275 // Mapping a client to its protection request. | 282 // Mapping a client to its protection request. |
276 typedef std::map<ContentProtectionClientId, ContentProtections> | 283 typedef std::map<ContentProtectionClientId, ContentProtections> |
277 ProtectionRequests; | 284 ProtectionRequests; |
278 | 285 |
279 // Performs platform specific delegate initialization. | 286 // Performs platform specific delegate initialization. |
280 scoped_ptr<NativeDisplayDelegate> CreatePlatformNativeDisplayDelegate(); | 287 scoped_ptr<NativeDisplayDelegate> CreatePlatformNativeDisplayDelegate(); |
281 | 288 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 | 434 |
428 // This must be the last variable. | 435 // This must be the last variable. |
429 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; | 436 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; |
430 | 437 |
431 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); | 438 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); |
432 }; | 439 }; |
433 | 440 |
434 } // namespace ui | 441 } // namespace ui |
435 | 442 |
436 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ | 443 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
OLD | NEW |