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

Side by Side Diff: ui/ozone/platform/drm/common/drm_util.h

Issue 1133053003: [Ozone-Drm] Move DRM utilities from gpu/ to common/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « ui/ozone/platform/drm/BUILD.gn ('k') | ui/ozone/platform/drm/common/drm_util.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_UTIL_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_COMMON_DRM_UTIL_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_UTIL_H_ 6 #define UI_OZONE_PLATFORM_DRM_COMMON_DRM_UTIL_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
12 #include "ui/ozone/platform/drm/gpu/scoped_drm_types.h" 11 #include "ui/ozone/platform/drm/common/scoped_drm_types.h"
13 12
14 typedef struct _drmModeModeInfo drmModeModeInfo; 13 typedef struct _drmModeModeInfo drmModeModeInfo;
15 14
16 namespace ui { 15 namespace ui {
17 16
18 class DrmDevice;
19 class ScreenManager;
20
21 // Representation of the information required to initialize and configure a 17 // Representation of the information required to initialize and configure a
22 // native display. 18 // native display.
23 class HardwareDisplayControllerInfo { 19 class HardwareDisplayControllerInfo {
24 public: 20 public:
25 HardwareDisplayControllerInfo(ScopedDrmConnectorPtr connector, 21 HardwareDisplayControllerInfo(ScopedDrmConnectorPtr connector,
26 ScopedDrmCrtcPtr crtc); 22 ScopedDrmCrtcPtr crtc);
27 ~HardwareDisplayControllerInfo(); 23 ~HardwareDisplayControllerInfo();
28 24
29 drmModeConnector* connector() const { return connector_.get(); } 25 drmModeConnector* connector() const { return connector_.get(); }
30 drmModeCrtc* crtc() const { return crtc_.get(); } 26 drmModeCrtc* crtc() const { return crtc_.get(); }
31 27
32 private: 28 private:
33 ScopedDrmConnectorPtr connector_; 29 ScopedDrmConnectorPtr connector_;
34 ScopedDrmCrtcPtr crtc_; 30 ScopedDrmCrtcPtr crtc_;
35 31
36 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayControllerInfo); 32 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayControllerInfo);
37 }; 33 };
38 34
39 // Looks-up and parses the native display configurations returning all available 35 // Looks-up and parses the native display configurations returning all available
40 // displays. 36 // displays.
41 ScopedVector<HardwareDisplayControllerInfo> GetAvailableDisplayControllerInfos( 37 ScopedVector<HardwareDisplayControllerInfo> GetAvailableDisplayControllerInfos(
42 int fd); 38 int fd);
43 39
44 bool SameMode(const drmModeModeInfo& lhs, const drmModeModeInfo& rhs); 40 bool SameMode(const drmModeModeInfo& lhs, const drmModeModeInfo& rhs);
45 41
46 void ForceInitializationOfPrimaryDisplay(const scoped_refptr<DrmDevice>& drm,
47 ScreenManager* screen_manager);
48
49 } // namespace ui 42 } // namespace ui
50 43
51 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_UTIL_H_ 44 #endif // UI_OZONE_PLATFORM_DRM_COMMON_DRM_UTIL_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/BUILD.gn ('k') | ui/ozone/platform/drm/common/drm_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698