Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_backend.h
Show All 27 Lines | |||||
28 | #endif | 28 | #endif | ||
29 | #include "drm_inputeventfilter.h" | 29 | #include "drm_inputeventfilter.h" | ||
30 | #include "drm_pointer.h" | 30 | #include "drm_pointer.h" | ||
31 | 31 | | |||
32 | #include <QElapsedTimer> | 32 | #include <QElapsedTimer> | ||
33 | #include <QImage> | 33 | #include <QImage> | ||
34 | #include <QPointer> | 34 | #include <QPointer> | ||
35 | #include <QSize> | 35 | #include <QSize> | ||
36 | #include <QVector> | ||||
36 | #include <xf86drmMode.h> | 37 | #include <xf86drmMode.h> | ||
37 | 38 | | |||
38 | #include <memory> | 39 | #include <memory> | ||
39 | 40 | | |||
40 | struct gbm_bo; | 41 | struct gbm_bo; | ||
41 | struct gbm_device; | 42 | struct gbm_device; | ||
42 | struct gbm_surface; | 43 | struct gbm_surface; | ||
43 | 44 | | |||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
88 | #if HAVE_GBM | 89 | #if HAVE_GBM | ||
89 | DrmSurfaceBuffer *createBuffer(const std::shared_ptr<GbmSurface> &surface); | 90 | DrmSurfaceBuffer *createBuffer(const std::shared_ptr<GbmSurface> &surface); | ||
90 | #endif | 91 | #endif | ||
91 | void present(DrmBuffer *buffer, DrmOutput *output); | 92 | void present(DrmBuffer *buffer, DrmOutput *output); | ||
92 | 93 | | |||
93 | int fd() const { | 94 | int fd() const { | ||
94 | return m_fd; | 95 | return m_fd; | ||
95 | } | 96 | } | ||
96 | QVector<DrmOutput*> outputs() const { | 97 | Outputs outputs() const override; | ||
98 | Outputs enabledOutputs() const override; | ||||
99 | QVector<DrmOutput*> drmOutputs() const { | ||||
97 | return m_outputs; | 100 | return m_outputs; | ||
98 | } | 101 | } | ||
99 | QVector<DrmOutput*> enabledOutputs() const { | 102 | QVector<DrmOutput*> drmEnabledOutputs() const { | ||
100 | return m_enabledOutputs; | 103 | return m_enabledOutputs; | ||
101 | } | 104 | } | ||
105 | | ||||
102 | QVector<DrmPlane*> planes() const { | 106 | QVector<DrmPlane*> planes() const { | ||
103 | return m_planes; | 107 | return m_planes; | ||
104 | } | 108 | } | ||
105 | QVector<DrmPlane*> overlayPlanes() const { | 109 | QVector<DrmPlane*> overlayPlanes() const { | ||
106 | return m_overlayPlanes; | 110 | return m_overlayPlanes; | ||
107 | } | 111 | } | ||
108 | 112 | | |||
109 | void outputWentOff(); | 113 | void outputWentOff(); | ||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |