Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_backend.h
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | |||||
88 | #if HAVE_GBM | 88 | #if HAVE_GBM | ||
89 | DrmSurfaceBuffer *createBuffer(const std::shared_ptr<GbmSurface> &surface); | 89 | DrmSurfaceBuffer *createBuffer(const std::shared_ptr<GbmSurface> &surface); | ||
90 | #endif | 90 | #endif | ||
91 | void present(DrmBuffer *buffer, DrmOutput *output); | 91 | void present(DrmBuffer *buffer, DrmOutput *output); | ||
92 | 92 | | |||
93 | int fd() const { | 93 | int fd() const { | ||
94 | return m_fd; | 94 | return m_fd; | ||
95 | } | 95 | } | ||
96 | QVector<DrmOutput*> outputs() const { | | |||
97 | return m_outputs; | | |||
98 | } | | |||
99 | QVector<DrmOutput*> enabledOutputs() const { | | |||
100 | return m_enabledOutputs; | | |||
101 | } | | |||
102 | QVector<DrmPlane*> planes() const { | 96 | QVector<DrmPlane*> planes() const { | ||
103 | return m_planes; | 97 | return m_planes; | ||
104 | } | 98 | } | ||
105 | QVector<DrmPlane*> overlayPlanes() const { | 99 | QVector<DrmPlane*> overlayPlanes() const { | ||
106 | return m_overlayPlanes; | 100 | return m_overlayPlanes; | ||
107 | } | 101 | } | ||
108 | 102 | | |||
109 | void outputWentOff(); | 103 | void outputWentOff(); | ||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 146 | private: | |||
168 | QScopedPointer<Udev> m_udev; | 162 | QScopedPointer<Udev> m_udev; | ||
169 | QScopedPointer<UdevMonitor> m_udevMonitor; | 163 | QScopedPointer<UdevMonitor> m_udevMonitor; | ||
170 | int m_fd = -1; | 164 | int m_fd = -1; | ||
171 | int m_drmId = 0; | 165 | int m_drmId = 0; | ||
172 | // all crtcs | 166 | // all crtcs | ||
173 | QVector<DrmCrtc*> m_crtcs; | 167 | QVector<DrmCrtc*> m_crtcs; | ||
174 | // all connectors | 168 | // all connectors | ||
175 | QVector<DrmConnector*> m_connectors; | 169 | QVector<DrmConnector*> m_connectors; | ||
176 | // active output pipelines (planes + crtc + encoder + connector) | | |||
177 | QVector<DrmOutput*> m_outputs; | | |||
178 | // active and enabled pipelines (above + wl_output) | | |||
179 | QVector<DrmOutput*> m_enabledOutputs; | | |||
180 | 170 | | |||
181 | bool m_deleteBufferAfterPageFlip; | 171 | bool m_deleteBufferAfterPageFlip; | ||
182 | bool m_atomicModeSetting = false; | 172 | bool m_atomicModeSetting = false; | ||
183 | bool m_cursorEnabled = false; | 173 | bool m_cursorEnabled = false; | ||
184 | QSize m_cursorSize; | 174 | QSize m_cursorSize; | ||
185 | int m_pageFlipsPending = 0; | 175 | int m_pageFlipsPending = 0; | ||
186 | bool m_active = false; | 176 | bool m_active = false; | ||
187 | // all available planes: primarys, cursors and overlays | 177 | // all available planes: primarys, cursors and overlays | ||
Show All 12 Lines |