| 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 | 262 |
| 263 // Checks the available color profiles for |display_id| and fills the result | 263 // Checks the available color profiles for |display_id| and fills the result |
| 264 // into |profiles|. | 264 // into |profiles|. |
| 265 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( | 265 std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles( |
| 266 int64_t display_id); | 266 int64_t display_id); |
| 267 | 267 |
| 268 // Updates the color calibration to |new_profile|. | 268 // Updates the color calibration to |new_profile|. |
| 269 bool SetColorCalibrationProfile(int64_t display_id, | 269 bool SetColorCalibrationProfile(int64_t display_id, |
| 270 ui::ColorCalibrationProfile new_profile); | 270 ui::ColorCalibrationProfile new_profile); |
| 271 | 271 |
| 272 // Sets the gamma ramp for |display_id| to the values in |lut|. | |
| 273 bool SetGammaRamp(int64_t display_id, | |
| 274 const std::vector<GammaRampRGBEntry>& lut); | |
| 275 | |
| 276 // Enables/disables virtual display. | 272 // Enables/disables virtual display. |
| 277 int64_t AddVirtualDisplay(gfx::Size display_size); | 273 int64_t AddVirtualDisplay(gfx::Size display_size); |
| 278 bool RemoveVirtualDisplay(int64_t display_id); | 274 bool RemoveVirtualDisplay(int64_t display_id); |
| 279 | 275 |
| 276 // Sets the gamma, degamma and correction matrix for |display_id| to the |
| 277 // values in |degamma_lut|, |gamma_lut| and |correction_matrix|. |
| 278 bool SetColorCorrection(int64_t display_id, |
| 279 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 280 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 281 const std::vector<float>& correction_matrix); |
| 282 |
| 280 private: | 283 private: |
| 281 class DisplayLayoutManagerImpl; | 284 class DisplayLayoutManagerImpl; |
| 282 | 285 |
| 283 // Mapping a client to its protection request. | 286 // Mapping a client to its protection request. |
| 284 typedef std::map<ContentProtectionClientId, ContentProtections> | 287 typedef std::map<ContentProtectionClientId, ContentProtections> |
| 285 ProtectionRequests; | 288 ProtectionRequests; |
| 286 | 289 |
| 287 // Performs platform specific delegate initialization. | 290 // Performs platform specific delegate initialization. |
| 288 scoped_ptr<NativeDisplayDelegate> CreatePlatformNativeDisplayDelegate(); | 291 scoped_ptr<NativeDisplayDelegate> CreatePlatformNativeDisplayDelegate(); |
| 289 | 292 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 444 |
| 442 // This must be the last variable. | 445 // This must be the last variable. |
| 443 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; | 446 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; |
| 444 | 447 |
| 445 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); | 448 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); |
| 446 }; | 449 }; |
| 447 | 450 |
| 448 } // namespace ui | 451 } // namespace ui |
| 449 | 452 |
| 450 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ | 453 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ |
| OLD | NEW |