| 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 scanout formats for |widget| representing a particular display |
| 33 // controller or default display controller for kNullAcceleratedWidget. |
| 34 void GetScanoutFormats(gfx::AcceleratedWidget widget, |
| 35 std::vector<gfx::BufferFormat>* scanout_formats); |
| 36 |
| 32 // Takes/releases the control of the DRM devices. | 37 // Takes/releases the control of the DRM devices. |
| 33 bool TakeDisplayControl(); | 38 bool TakeDisplayControl(); |
| 34 void RelinquishDisplayControl(); | 39 void RelinquishDisplayControl(); |
| 35 | 40 |
| 36 bool ConfigureDisplay(int64_t id, | 41 bool ConfigureDisplay(int64_t id, |
| 37 const DisplayMode_Params& mode, | 42 const DisplayMode_Params& mode, |
| 38 const gfx::Point& origin); | 43 const gfx::Point& origin); |
| 39 bool DisableDisplay(int64_t id); | 44 bool DisableDisplay(int64_t id); |
| 40 bool GetHDCPState(int64_t display_id, HDCPState* state); | 45 bool GetHDCPState(int64_t display_id, HDCPState* state); |
| 41 bool SetHDCPState(int64_t display_id, HDCPState state); | 46 bool SetHDCPState(int64_t display_id, HDCPState state); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 54 DrmDeviceManager* drm_device_manager_; // Not owned. | 59 DrmDeviceManager* drm_device_manager_; // Not owned. |
| 55 | 60 |
| 56 std::vector<scoped_ptr<DrmDisplay>> displays_; | 61 std::vector<scoped_ptr<DrmDisplay>> displays_; |
| 57 | 62 |
| 58 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager); | 63 DISALLOW_COPY_AND_ASSIGN(DrmGpuDisplayManager); |
| 59 }; | 64 }; |
| 60 | 65 |
| 61 } // namespace ui | 66 } // namespace ui |
| 62 | 67 |
| 63 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ | 68 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_GPU_DISPLAY_MANAGER_H_ |
| OLD | NEW |