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

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

Issue 1129923004: [1/2][Ozone-Drm] Refactor GPU display management (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@handle-display-init2
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
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_COMMON_DRM_UTIL_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_COMMON_DRM_UTIL_H_
6 #define UI_OZONE_PLATFORM_DRM_COMMON_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/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
11 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
11 #include "ui/ozone/platform/drm/common/scoped_drm_types.h" 12 #include "ui/ozone/platform/drm/common/scoped_drm_types.h"
12 13
13 typedef struct _drmModeModeInfo drmModeModeInfo; 14 typedef struct _drmModeModeInfo drmModeModeInfo;
14 15
15 namespace ui { 16 namespace ui {
16 17
17 // Representation of the information required to initialize and configure a 18 // Representation of the information required to initialize and configure a
18 // native display. 19 // native display.
19 class HardwareDisplayControllerInfo { 20 class HardwareDisplayControllerInfo {
20 public: 21 public:
(...skipping 11 matching lines...) Expand all
32 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayControllerInfo); 33 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayControllerInfo);
33 }; 34 };
34 35
35 // Looks-up and parses the native display configurations returning all available 36 // Looks-up and parses the native display configurations returning all available
36 // displays. 37 // displays.
37 ScopedVector<HardwareDisplayControllerInfo> GetAvailableDisplayControllerInfos( 38 ScopedVector<HardwareDisplayControllerInfo> GetAvailableDisplayControllerInfos(
38 int fd); 39 int fd);
39 40
40 bool SameMode(const drmModeModeInfo& lhs, const drmModeModeInfo& rhs); 41 bool SameMode(const drmModeModeInfo& lhs, const drmModeModeInfo& rhs);
41 42
43 DisplayMode_Params ParseDrmMode(const drmModeModeInfo& mode);
spang 2015/05/11 22:21:32 I don't think "Parse" is the right verb here. The
dnicoara 2015/05/12 15:17:10 Actually, I don't like the "DrmMode" part too. Ren
44
45 DisplaySnapshot_Params ParseDrmDisplay(HardwareDisplayControllerInfo* info,
46 int fd,
47 size_t index);
spang 2015/05/11 22:21:32 What is 'index'? Needs more docs.
dnicoara 2015/05/12 15:17:10 Done.
48
42 } // namespace ui 49 } // namespace ui
43 50
44 #endif // UI_OZONE_PLATFORM_DRM_COMMON_DRM_UTIL_H_ 51 #endif // UI_OZONE_PLATFORM_DRM_COMMON_DRM_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698