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 11 matching lines...) Expand all Loading... |
22 class DrmGpuDisplayManager { | 22 class DrmGpuDisplayManager { |
23 public: | 23 public: |
24 DrmGpuDisplayManager(ScreenManager* screen_manager, | 24 DrmGpuDisplayManager(ScreenManager* screen_manager, |
25 DrmDeviceManager* drm_device_manager); | 25 DrmDeviceManager* drm_device_manager); |
26 ~DrmGpuDisplayManager(); | 26 ~DrmGpuDisplayManager(); |
27 | 27 |
28 // Returns a list of the connected displays. When this is called the list of | 28 // Returns a list of the connected displays. When this is called the list of |
29 // displays is refreshed. | 29 // displays is refreshed. |
30 std::vector<DisplaySnapshot_Params> GetDisplays(); | 30 std::vector<DisplaySnapshot_Params> GetDisplays(); |
31 | 31 |
| 32 // Returns all formats which can be scanned out by this PlaneManager. |
| 33 const std::vector<uint32_t>& GetSupportedFormats() const; |
| 34 |
32 // Takes/releases the control of the DRM devices. | 35 // Takes/releases the control of the DRM devices. |
33 bool TakeDisplayControl(); | 36 bool TakeDisplayControl(); |
34 void RelinquishDisplayControl(); | 37 void RelinquishDisplayControl(); |
35 | 38 |
36 bool ConfigureDisplay(int64_t id, | 39 bool ConfigureDisplay(int64_t id, |
37 const DisplayMode_Params& mode, | 40 const DisplayMode_Params& mode, |
38 const gfx::Point& origin); | 41 const gfx::Point& origin); |
39 bool DisableDisplay(int64_t id); | 42 bool DisableDisplay(int64_t id); |
40 bool GetHDCPState(int64_t display_id, HDCPState* state); | 43 bool GetHDCPState(int64_t display_id, HDCPState* state); |
41 bool SetHDCPState(int64_t display_id, HDCPState state); | 44 bool SetHDCPState(int64_t display_id, HDCPState state); |
(...skipping 12 matching lines...) Expand all Loading... |
54 DrmDeviceManager* drm_device_manager_; // Not owned. | 57 DrmDeviceManager* drm_device_manager_; // Not owned. |
55 | 58 |
56 std::vector<scoped_ptr<DrmDisplay>> displays_; | 59 std::vector<scoped_ptr<DrmDisplay>> displays_; |
57 | 60 |
58 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager); | 61 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager); |
59 }; | 62 }; |
60 | 63 |
61 } // namespace ui | 64 } // namespace ui |
62 | 65 |
63 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ | 66 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ |
OLD | NEW |