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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 // Checks the available color profiles for |display_id| and fills the result | 261 // Checks the available color profiles for |display_id| and fills the result |
262 // into |profiles|. | 262 // into |profiles|. |
263 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( | 263 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( |
264 int64_t display_id); | 264 int64_t display_id); |
265 | 265 |
266 // Updates the color calibration to |new_profile|. | 266 // Updates the color calibration to |new_profile|. |
267 bool SetColorCalibrationProfile(int64_t display_id, | 267 bool SetColorCalibrationProfile(int64_t display_id, |
268 ui::ColorCalibrationProfile new_profile); | 268 ui::ColorCalibrationProfile new_profile); |
269 | 269 |
| 270 // Sets the gamma ramp for |display_id| to the values in |r|, |g| and |b|. |
| 271 bool SetGammaRamp(int64_t display_id, |
| 272 const std::vector<uint16_t>& r, |
| 273 const std::vector<uint16_t>& g, |
| 274 const std::vector<uint16_t>& b); |
| 275 |
270 private: | 276 private: |
271 class DisplayLayoutManagerImpl; | 277 class DisplayLayoutManagerImpl; |
272 | 278 |
273 // Mapping a display_id to a protection request bitmask. | 279 // Mapping a display_id to a protection request bitmask. |
274 typedef std::map<int64_t, uint32_t> ContentProtections; | 280 typedef std::map<int64_t, uint32_t> ContentProtections; |
275 // Mapping a client to its protection request. | 281 // Mapping a client to its protection request. |
276 typedef std::map<ContentProtectionClientId, ContentProtections> | 282 typedef std::map<ContentProtectionClientId, ContentProtections> |
277 ProtectionRequests; | 283 ProtectionRequests; |
278 | 284 |
279 // Performs platform specific delegate initialization. | 285 // Performs platform specific delegate initialization. |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 | 408 |
403 // This must be the last variable. | 409 // This must be the last variable. |
404 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; | 410 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; |
405 | 411 |
406 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); | 412 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); |
407 }; | 413 }; |
408 | 414 |
409 } // namespace ui | 415 } // namespace ui |
410 | 416 |
411 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ | 417 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
OLD | NEW |