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

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

Issue 1140773003: [1.5/2][Ozone-Drm] Keep track of display origin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@handle-display-init3
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 | « no previous file | 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_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/common/gpu/ozone_gpu_message_params.h"
12 #include "ui/ozone/platform/drm/common/scoped_drm_types.h" 12 #include "ui/ozone/platform/drm/common/scoped_drm_types.h"
13 13
14 typedef struct _drmModeModeInfo drmModeModeInfo; 14 typedef struct _drmModeModeInfo drmModeModeInfo;
15 15
16 namespace gfx {
17 class Point;
18 }
19
16 namespace ui { 20 namespace ui {
17 21
18 // Representation of the information required to initialize and configure a 22 // Representation of the information required to initialize and configure a
19 // native display. 23 // native display.
20 class HardwareDisplayControllerInfo { 24 class HardwareDisplayControllerInfo {
21 public: 25 public:
22 HardwareDisplayControllerInfo(ScopedDrmConnectorPtr connector, 26 HardwareDisplayControllerInfo(ScopedDrmConnectorPtr connector,
23 ScopedDrmCrtcPtr crtc); 27 ScopedDrmCrtcPtr crtc);
24 ~HardwareDisplayControllerInfo(); 28 ~HardwareDisplayControllerInfo();
25 29
(...skipping 16 matching lines...) Expand all
42 46
43 DisplayMode_Params CreateDisplayModeParams(const drmModeModeInfo& mode); 47 DisplayMode_Params CreateDisplayModeParams(const drmModeModeInfo& mode);
44 48
45 // |info| provides the DRM information related to the display, |fd| is the 49 // |info| provides the DRM information related to the display, |fd| is the
46 // connection to the DRM device and |index| provides a unique identifier for the 50 // connection to the DRM device and |index| provides a unique identifier for the
47 // display. |index| will be used to generate the display id (it may be the id if 51 // display. |index| will be used to generate the display id (it may be the id if
48 // the monitor's EDID lacks the necessary identifiers). 52 // the monitor's EDID lacks the necessary identifiers).
49 DisplaySnapshot_Params CreateDisplaySnapshotParams( 53 DisplaySnapshot_Params CreateDisplaySnapshotParams(
50 HardwareDisplayControllerInfo* info, 54 HardwareDisplayControllerInfo* info,
51 int fd, 55 int fd,
52 size_t display_index); 56 size_t display_index,
57 const gfx::Point& origin);
53 58
54 } // namespace ui 59 } // namespace ui
55 60
56 #endif // UI_OZONE_PLATFORM_DRM_COMMON_DRM_UTIL_H_ 61 #endif // UI_OZONE_PLATFORM_DRM_COMMON_DRM_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/drm/common/drm_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698