Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_backend.h
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 77 | #endif | |||
---|---|---|---|---|---|
84 | Outputs enabledOutputs() const override; | 84 | Outputs enabledOutputs() const override; | ||
85 | QVector<DrmOutput*> drmOutputs() const { | 85 | QVector<DrmOutput*> drmOutputs() const { | ||
86 | return m_outputs; | 86 | return m_outputs; | ||
87 | } | 87 | } | ||
88 | QVector<DrmOutput*> drmEnabledOutputs() const { | 88 | QVector<DrmOutput*> drmEnabledOutputs() const { | ||
89 | return m_enabledOutputs; | 89 | return m_enabledOutputs; | ||
90 | } | 90 | } | ||
91 | 91 | | |||
92 | void enableOutput(AbstractOutput *output, bool enable) override; | 92 | void enableOutput(DrmOutput *output, bool enable); | ||
93 | 93 | | |||
94 | QVector<DrmPlane*> planes() const { | 94 | QVector<DrmPlane*> planes() const { | ||
95 | return m_planes; | 95 | return m_planes; | ||
96 | } | 96 | } | ||
97 | QVector<DrmPlane*> overlayPlanes() const { | 97 | QVector<DrmPlane*> overlayPlanes() const { | ||
98 | return m_overlayPlanes; | 98 | return m_overlayPlanes; | ||
99 | } | 99 | } | ||
100 | 100 | | |||
101 | void outputWentOff(); | 101 | void createDpmsFilter(); | ||
102 | void checkOutputsAreOn(); | 102 | void checkOutputsAreOn(); | ||
103 | 103 | | |||
104 | // QPainter reuses buffers | 104 | // QPainter reuses buffers | ||
105 | bool deleteBufferAfterPageFlip() const { | 105 | bool deleteBufferAfterPageFlip() const { | ||
106 | return m_deleteBufferAfterPageFlip; | 106 | return m_deleteBufferAfterPageFlip; | ||
107 | } | 107 | } | ||
108 | // returns use of AMS, default is not/legacy | 108 | // returns use of AMS, default is not/legacy | ||
109 | bool atomicModeSetting() const { | 109 | bool atomicModeSetting() const { | ||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 152 | private: | |||
155 | void activate(bool active); | 155 | void activate(bool active); | ||
156 | void reactivate(); | 156 | void reactivate(); | ||
157 | void deactivate(); | 157 | void deactivate(); | ||
158 | void updateOutputs(); | 158 | void updateOutputs(); | ||
159 | void setCursor(); | 159 | void setCursor(); | ||
160 | void updateCursor(); | 160 | void updateCursor(); | ||
161 | void moveCursor(); | 161 | void moveCursor(); | ||
162 | void initCursor(); | 162 | void initCursor(); | ||
163 | void outputDpmsChanged(); | | |||
164 | void readOutputsConfiguration(); | 163 | void readOutputsConfiguration(); | ||
165 | void writeOutputsConfiguration(); | 164 | void writeOutputsConfiguration(); | ||
166 | QByteArray generateOutputConfigurationUuid() const; | 165 | QByteArray generateOutputConfigurationUuid() const; | ||
167 | DrmOutput *findOutput(quint32 connector); | 166 | DrmOutput *findOutput(quint32 connector); | ||
167 | void updateOutputsEnabled(); | ||||
168 | QScopedPointer<Udev> m_udev; | 168 | QScopedPointer<Udev> m_udev; | ||
169 | QScopedPointer<UdevMonitor> m_udevMonitor; | 169 | QScopedPointer<UdevMonitor> m_udevMonitor; | ||
170 | int m_fd = -1; | 170 | int m_fd = -1; | ||
171 | int m_drmId = 0; | 171 | int m_drmId = 0; | ||
172 | // all crtcs | 172 | // all crtcs | ||
173 | QVector<DrmCrtc*> m_crtcs; | 173 | QVector<DrmCrtc*> m_crtcs; | ||
174 | // all connectors | 174 | // all connectors | ||
175 | QVector<DrmConnector*> m_connectors; | 175 | QVector<DrmConnector*> m_connectors; | ||
Show All 27 Lines |