| 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_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 bool TakeDisplayControl(); | 38 bool TakeDisplayControl(); |
| 39 void RelinquishDisplayControl(); | 39 void RelinquishDisplayControl(); |
| 40 | 40 |
| 41 bool ConfigureDisplay(int64_t id, | 41 bool ConfigureDisplay(int64_t id, |
| 42 const DisplayMode_Params& mode, | 42 const DisplayMode_Params& mode, |
| 43 const gfx::Point& origin); | 43 const gfx::Point& origin); |
| 44 bool DisableDisplay(int64_t id); | 44 bool DisableDisplay(int64_t id); |
| 45 bool GetHDCPState(int64_t display_id, HDCPState* state); | 45 bool GetHDCPState(int64_t display_id, HDCPState* state); |
| 46 bool SetHDCPState(int64_t display_id, HDCPState state); | 46 bool SetHDCPState(int64_t display_id, HDCPState state); |
| 47 void SetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut); | 47 void SetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut); |
| 48 void SetColorCorrection(int64_t id, |
| 49 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 50 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 51 const std::vector<float>& correction_matrix); |
| 48 | 52 |
| 49 private: | 53 private: |
| 50 DrmDisplay* FindDisplay(int64_t display_id); | 54 DrmDisplay* FindDisplay(int64_t display_id); |
| 51 | 55 |
| 52 // Notify ScreenManager of all the displays that were present before the | 56 // Notify ScreenManager of all the displays that were present before the |
| 53 // update but are gone after the update. | 57 // update but are gone after the update. |
| 54 void NotifyScreenManager( | 58 void NotifyScreenManager( |
| 55 const std::vector<scoped_ptr<DrmDisplay>>& new_displays, | 59 const std::vector<scoped_ptr<DrmDisplay>>& new_displays, |
| 56 const std::vector<scoped_ptr<DrmDisplay>>& old_displays) const; | 60 const std::vector<scoped_ptr<DrmDisplay>>& old_displays) const; |
| 57 | 61 |
| 58 ScreenManager* screen_manager_; // Not owned. | 62 ScreenManager* screen_manager_; // Not owned. |
| 59 DrmDeviceManager* drm_device_manager_; // Not owned. | 63 DrmDeviceManager* drm_device_manager_; // Not owned. |
| 60 | 64 |
| 61 std::vector<scoped_ptr<DrmDisplay>> displays_; | 65 std::vector<scoped_ptr<DrmDisplay>> displays_; |
| 62 | 66 |
| 63 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager); | 67 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager); |
| 64 }; | 68 }; |
| 65 | 69 |
| 66 } // namespace ui | 70 } // namespace ui |
| 67 | 71 |
| 68 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ | 72 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ |
| OLD | NEW |