Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_output.h
Show All 18 Lines | |||||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef KWIN_DRM_OUTPUT_H | 20 | #ifndef KWIN_DRM_OUTPUT_H | ||
21 | #define KWIN_DRM_OUTPUT_H | 21 | #define KWIN_DRM_OUTPUT_H | ||
22 | 22 | | |||
23 | #include "abstract_wayland_output.h" | 23 | #include "abstract_wayland_output.h" | ||
24 | #include "drm_pointer.h" | 24 | #include "drm_pointer.h" | ||
25 | #include "drm_object.h" | 25 | #include "drm_object.h" | ||
26 | #include "drm_object_plane.h" | 26 | #include "drm_object_plane.h" | ||
27 | #include "edid.h" | ||||
27 | 28 | | |||
28 | #include <QObject> | 29 | #include <QObject> | ||
29 | #include <QPoint> | 30 | #include <QPoint> | ||
30 | #include <QSize> | 31 | #include <QSize> | ||
31 | #include <QVector> | 32 | #include <QVector> | ||
32 | #include <xf86drmMode.h> | 33 | #include <xf86drmMode.h> | ||
33 | 34 | | |||
34 | namespace KWin | 35 | namespace KWin | ||
35 | { | 36 | { | ||
36 | 37 | | |||
37 | class DrmBackend; | 38 | class DrmBackend; | ||
38 | class DrmBuffer; | 39 | class DrmBuffer; | ||
39 | class DrmDumbBuffer; | 40 | class DrmDumbBuffer; | ||
40 | class DrmPlane; | 41 | class DrmPlane; | ||
41 | class DrmConnector; | 42 | class DrmConnector; | ||
42 | class DrmCrtc; | 43 | class DrmCrtc; | ||
43 | 44 | | |||
44 | class KWIN_EXPORT DrmOutput : public AbstractWaylandOutput | 45 | class KWIN_EXPORT DrmOutput : public AbstractWaylandOutput | ||
45 | { | 46 | { | ||
46 | Q_OBJECT | 47 | Q_OBJECT | ||
47 | public: | 48 | public: | ||
48 | struct Edid { | | |||
49 | QByteArray eisaId; | | |||
50 | QByteArray monitorName; | | |||
51 | QByteArray serialNumber; | | |||
52 | QSize physicalSize; | | |||
53 | }; | | |||
54 | ///deletes the output, calling this whilst a page flip is pending will result in an error | 49 | ///deletes the output, calling this whilst a page flip is pending will result in an error | ||
55 | ~DrmOutput() override; | 50 | ~DrmOutput() override; | ||
56 | ///queues deleting the output after a page flip has completed. | 51 | ///queues deleting the output after a page flip has completed. | ||
57 | void teardown(); | 52 | void teardown(); | ||
58 | void releaseGbm(); | 53 | void releaseGbm(); | ||
59 | bool showCursor(DrmDumbBuffer *buffer); | 54 | bool showCursor(DrmDumbBuffer *buffer); | ||
60 | bool showCursor(); | 55 | bool showCursor(); | ||
61 | bool hideCursor(); | 56 | bool hideCursor(); | ||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |