Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/egl_stream_backend.cpp
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | |||||
81 | #ifndef EGL_WAYLAND_Y_INVERTED_WL | 81 | #ifndef EGL_WAYLAND_Y_INVERTED_WL | ||
82 | #define EGL_WAYLAND_Y_INVERTED_WL 0x31DB | 82 | #define EGL_WAYLAND_Y_INVERTED_WL 0x31DB | ||
83 | #endif | 83 | #endif | ||
84 | 84 | | |||
85 | EglStreamBackend::EglStreamBackend(DrmBackend *b) | 85 | EglStreamBackend::EglStreamBackend(DrmBackend *b) | ||
86 | : AbstractEglBackend(), m_backend(b) | 86 | : AbstractEglBackend(), m_backend(b) | ||
87 | { | 87 | { | ||
88 | setIsDirectRendering(true); | 88 | setIsDirectRendering(true); | ||
89 | setSyncsToVBlank(true); | | |||
90 | connect(m_backend, &DrmBackend::outputAdded, this, &EglStreamBackend::createOutput); | 89 | connect(m_backend, &DrmBackend::outputAdded, this, &EglStreamBackend::createOutput); | ||
91 | connect(m_backend, &DrmBackend::outputRemoved, this, | 90 | connect(m_backend, &DrmBackend::outputRemoved, this, | ||
92 | [this] (DrmOutput *output) { | 91 | [this] (DrmOutput *output) { | ||
93 | auto it = std::find_if(m_outputs.begin(), m_outputs.end(), | 92 | auto it = std::find_if(m_outputs.begin(), m_outputs.end(), | ||
94 | [output] (const Output &o) { | 93 | [output] (const Output &o) { | ||
95 | return o.output == output; | 94 | return o.output == output; | ||
96 | }); | 95 | }); | ||
97 | if (it == m_outputs.end()) { | 96 | if (it == m_outputs.end()) { | ||
▲ Show 20 Lines • Show All 595 Lines • Show Last 20 Lines |