Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_output.h
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | 47 | public: | |||
---|---|---|---|---|---|
82 | QByteArray uuid() const { | 82 | QByteArray uuid() const { | ||
83 | return m_uuid; | 83 | return m_uuid; | ||
84 | } | 84 | } | ||
85 | 85 | | |||
86 | bool initCursor(const QSize &cursorSize); | 86 | bool initCursor(const QSize &cursorSize); | ||
87 | 87 | | |||
88 | bool supportsTransformations() const; | 88 | bool supportsTransformations() const; | ||
89 | 89 | | |||
90 | int softwareRotationAngle() const override { | ||||
zzagUnsubmitted Done zzag: ```lang=cpp
int softwareRotationAngle() const {
return m_softwareRotationAngle;
}
``` | |||||
91 | return m_softwareRotationAngle; | ||||
92 | } | ||||
93 | | ||||
90 | Q_SIGNALS: | 94 | Q_SIGNALS: | ||
91 | void dpmsChanged(); | 95 | void dpmsChanged(); | ||
92 | 96 | | |||
93 | private: | 97 | private: | ||
94 | friend class DrmBackend; | 98 | friend class DrmBackend; | ||
95 | friend class DrmCrtc; // TODO: For use of setModeLegacy. Remove later when we allow multiple connectors per crtc | 99 | friend class DrmCrtc; // TODO: For use of setModeLegacy. Remove later when we allow multiple connectors per crtc | ||
96 | // and save the connector ids in the DrmCrtc instance. | 100 | // and save the connector ids in the DrmCrtc instance. | ||
97 | DrmOutput(DrmBackend *backend); | 101 | DrmOutput(DrmBackend *backend); | ||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 155 | struct { | |||
155 | QPoint globalPos; | 159 | QPoint globalPos; | ||
156 | bool valid = false; | 160 | bool valid = false; | ||
157 | } m_lastWorkingState; | 161 | } m_lastWorkingState; | ||
158 | DrmDumbBuffer *m_cursor[2] = {nullptr, nullptr}; | 162 | DrmDumbBuffer *m_cursor[2] = {nullptr, nullptr}; | ||
159 | int m_cursorIndex = 0; | 163 | int m_cursorIndex = 0; | ||
160 | bool m_hasNewCursor = false; | 164 | bool m_hasNewCursor = false; | ||
161 | bool m_internal = false; | 165 | bool m_internal = false; | ||
162 | bool m_deleted = false; | 166 | bool m_deleted = false; | ||
167 | int m_softwareRotationAngle = 0; | ||||
163 | }; | 168 | }; | ||
164 | 169 | | |||
165 | } | 170 | } | ||
166 | 171 | | |||
167 | Q_DECLARE_METATYPE(KWin::DrmOutput*) | 172 | Q_DECLARE_METATYPE(KWin::DrmOutput*) | ||
168 | 173 | | |||
169 | #endif | 174 | #endif | ||
170 | 175 | |