Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_gpu_display_manager.h

Issue 1598573002: Propagate supported scanout formats from driver to SurfaceFactoryOzone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698