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

Side by Side Diff: ui/ozone/platform/dri/dri_util.h

Issue 908993003: [Ozone-Dri] Rename DriWrapper to DrmDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@udl3-pass-drm-fd
Patch Set: rebased Created 5 years, 9 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/dri/dri_surface_unittest.cc ('k') | ui/ozone/platform/dri/dri_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_DRI_DRI_UTIL_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_UTIL_H_
6 #define UI_OZONE_PLATFORM_DRI_DRI_UTIL_H_ 6 #define UI_OZONE_PLATFORM_DRI_DRI_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" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "ui/ozone/platform/dri/scoped_drm_types.h" 12 #include "ui/ozone/platform/dri/scoped_drm_types.h"
13 13
14 typedef struct _drmModeModeInfo drmModeModeInfo; 14 typedef struct _drmModeModeInfo drmModeModeInfo;
15 15
16 namespace ui { 16 namespace ui {
17 17
18 class DriWrapper; 18 class DrmDevice;
19 class ScreenManager; 19 class ScreenManager;
20 20
21 // Representation of the information required to initialize and configure a 21 // Representation of the information required to initialize and configure a
22 // native display. 22 // native display.
23 class HardwareDisplayControllerInfo { 23 class HardwareDisplayControllerInfo {
24 public: 24 public:
25 HardwareDisplayControllerInfo(ScopedDrmConnectorPtr connector, 25 HardwareDisplayControllerInfo(ScopedDrmConnectorPtr connector,
26 ScopedDrmCrtcPtr crtc); 26 ScopedDrmCrtcPtr crtc);
27 ~HardwareDisplayControllerInfo(); 27 ~HardwareDisplayControllerInfo();
28 28
(...skipping 13 matching lines...) Expand all
42 GetAvailableDisplayControllerInfos(int fd); 42 GetAvailableDisplayControllerInfos(int fd);
43 43
44 bool SameMode(const drmModeModeInfo& lhs, const drmModeModeInfo& rhs); 44 bool SameMode(const drmModeModeInfo& lhs, const drmModeModeInfo& rhs);
45 45
46 // Memory maps a DRM buffer. 46 // Memory maps a DRM buffer.
47 bool MapDumbBuffer(int fd, 47 bool MapDumbBuffer(int fd,
48 uint32_t handle, 48 uint32_t handle,
49 uint32_t size, 49 uint32_t size,
50 void** pixels); 50 void** pixels);
51 51
52 void ForceInitializationOfPrimaryDisplay(const scoped_refptr<DriWrapper>& drm, 52 void ForceInitializationOfPrimaryDisplay(const scoped_refptr<DrmDevice>& drm,
53 ScreenManager* screen_manager); 53 ScreenManager* screen_manager);
54 54
55 base::FilePath GetPrimaryDisplayCardPath(); 55 base::FilePath GetPrimaryDisplayCardPath();
56 56
57 } // namespace ui 57 } // namespace ui
58 58
59 #endif // UI_OZONE_PLATFORM_DRI_DRI_UTIL_H_ 59 #endif // UI_OZONE_PLATFORM_DRI_DRI_UTIL_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_surface_unittest.cc ('k') | ui/ozone/platform/dri/dri_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698