Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_output.h
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Line(s) | 57 | public: | |||
---|---|---|---|---|---|
104 | } | 104 | } | ||
105 | 105 | | |||
106 | QSize physicalSize() const { | 106 | QSize physicalSize() const { | ||
107 | return m_physicalSize; | 107 | return m_physicalSize; | ||
108 | } | 108 | } | ||
109 | 109 | | |||
110 | Q_SIGNALS: | 110 | Q_SIGNALS: | ||
111 | void dpmsChanged(); | 111 | void dpmsChanged(); | ||
112 | void modeChanged(); | ||||
112 | 113 | | |||
113 | private: | 114 | private: | ||
114 | friend class DrmBackend; | 115 | friend class DrmBackend; | ||
115 | friend class DrmCrtc; // TODO: For use of setModeLegacy. Remove later when we allow multiple connectors per crtc | 116 | friend class DrmCrtc; // TODO: For use of setModeLegacy. Remove later when we allow multiple connectors per crtc | ||
116 | // and save the connector ids in the DrmCrtc instance. | 117 | // and save the connector ids in the DrmCrtc instance. | ||
117 | DrmOutput(DrmBackend *backend); | 118 | DrmOutput(DrmBackend *backend); | ||
118 | bool presentAtomically(DrmBuffer *buffer); | 119 | bool presentAtomically(DrmBuffer *buffer); | ||
119 | 120 | | |||
Show All 14 Lines | |||||
134 | 135 | | |||
135 | bool initPrimaryPlane(); | 136 | bool initPrimaryPlane(); | ||
136 | bool initCursorPlane(); | 137 | bool initCursorPlane(); | ||
137 | 138 | | |||
138 | void dpmsOnHandler(); | 139 | void dpmsOnHandler(); | ||
139 | void dpmsOffHandler(); | 140 | void dpmsOffHandler(); | ||
140 | bool dpmsAtomicOff(); | 141 | bool dpmsAtomicOff(); | ||
141 | bool atomicReqModesetPopulate(drmModeAtomicReq *req, bool enable); | 142 | bool atomicReqModesetPopulate(drmModeAtomicReq *req, bool enable); | ||
143 | void updateMode(int modeIndex); | ||||
142 | 144 | | |||
143 | DrmBackend *m_backend; | 145 | DrmBackend *m_backend; | ||
144 | DrmConnector *m_conn = nullptr; | 146 | DrmConnector *m_conn = nullptr; | ||
145 | DrmCrtc *m_crtc = nullptr; | 147 | DrmCrtc *m_crtc = nullptr; | ||
146 | QPoint m_globalPos; | 148 | QPoint m_globalPos; | ||
147 | qreal m_scale = 1; | 149 | qreal m_scale = 1; | ||
148 | bool m_lastGbm = false; | 150 | bool m_lastGbm = false; | ||
149 | drmModeModeInfo m_mode; | 151 | drmModeModeInfo m_mode; | ||
152 | drmModeModeInfo m_previousMode; | ||||
romangg: Nowhere (yet?) used. | |||||
Yes, it is for the case that modesettings fails, so that we can go back. graesslin: Yes, it is for the case that modesettings fails, so that we can go back. | |||||
150 | Edid m_edid; | 153 | Edid m_edid; | ||
151 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | 154 | QPointer<KWayland::Server::OutputInterface> m_waylandOutput; | ||
152 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | 155 | QPointer<KWayland::Server::OutputDeviceInterface> m_waylandOutputDevice; | ||
153 | QPointer<KWayland::Server::OutputChangeSet> m_changeset; | 156 | QPointer<KWayland::Server::OutputChangeSet> m_changeset; | ||
154 | KWin::ScopedDrmPointer<_drmModeProperty, &drmModeFreeProperty> m_dpms; | 157 | KWin::ScopedDrmPointer<_drmModeProperty, &drmModeFreeProperty> m_dpms; | ||
155 | DpmsMode m_dpmsMode = DpmsMode::On; | 158 | DpmsMode m_dpmsMode = DpmsMode::On; | ||
156 | DpmsMode m_dpmsModePending = DpmsMode::On; | 159 | DpmsMode m_dpmsModePending = DpmsMode::On; | ||
157 | QByteArray m_uuid; | 160 | QByteArray m_uuid; | ||
Show All 17 Lines |
Nowhere (yet?) used.