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_output.h" | 23 | #include "abstract_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 "drm_object_crtc.h" | ||||
romangg: Remove. Forward declaration is enough. | |||||
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 | ||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 78 | bool isDpmsEnabled() const { | |||
78 | // We care for current as well as pending mode in order to allow first present in AMS. | 79 | // We care for current as well as pending mode in order to allow first present in AMS. | ||
79 | return m_dpmsModePending == DpmsMode::On; | 80 | return m_dpmsModePending == DpmsMode::On; | ||
80 | } | 81 | } | ||
81 | 82 | | |||
82 | QByteArray uuid() const { | 83 | QByteArray uuid() const { | ||
83 | return m_uuid; | 84 | return m_uuid; | ||
84 | } | 85 | } | ||
85 | 86 | | |||
87 | const DrmCrtc *crtc() const { | ||||
88 | return m_crtc; | ||||
89 | } | ||||
90 | const DrmPlane *primaryPlane() const { | ||||
91 | return m_primaryPlane; | ||||
92 | } | ||||
93 | | ||||
94 | void setPageFlipPending() { | ||||
95 | m_pageFlipPending = true; | ||||
96 | } | ||||
97 | bool pageFlipPending() const { | ||||
98 | return m_pageFlipPending; | ||||
99 | } | ||||
100 | | ||||
86 | bool initCursor(const QSize &cursorSize); | 101 | bool initCursor(const QSize &cursorSize); | ||
87 | 102 | | |||
88 | bool supportsTransformations() const; | 103 | bool supportsTransformations() const; | ||
89 | 104 | | |||
90 | Q_SIGNALS: | 105 | Q_SIGNALS: | ||
91 | void dpmsChanged(); | 106 | void dpmsChanged(); | ||
92 | 107 | | |||
93 | private: | 108 | private: | ||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |
Remove. Forward declaration is enough.