Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/egl_gbm_backend.cpp
Show All 36 Lines | |||||
37 | { | 37 | { | ||
38 | 38 | | |||
39 | EglGbmBackend::EglGbmBackend(DrmBackend *b) | 39 | EglGbmBackend::EglGbmBackend(DrmBackend *b) | ||
40 | : AbstractEglBackend() | 40 | : AbstractEglBackend() | ||
41 | , m_backend(b) | 41 | , m_backend(b) | ||
42 | { | 42 | { | ||
43 | // Egl is always direct rendering | 43 | // Egl is always direct rendering | ||
44 | setIsDirectRendering(true); | 44 | setIsDirectRendering(true); | ||
45 | setSyncsToVBlank(true); | | |||
46 | connect(m_backend, &DrmBackend::outputAdded, this, &EglGbmBackend::createOutput); | 45 | connect(m_backend, &DrmBackend::outputAdded, this, &EglGbmBackend::createOutput); | ||
47 | connect(m_backend, &DrmBackend::outputRemoved, this, | 46 | connect(m_backend, &DrmBackend::outputRemoved, this, | ||
48 | [this] (DrmOutput *output) { | 47 | [this] (DrmOutput *output) { | ||
49 | auto it = std::find_if(m_outputs.begin(), m_outputs.end(), | 48 | auto it = std::find_if(m_outputs.begin(), m_outputs.end(), | ||
50 | [output] (const Output &o) { | 49 | [output] (const Output &o) { | ||
51 | return o.output == output; | 50 | return o.output == output; | ||
52 | } | 51 | } | ||
53 | ); | 52 | ); | ||
▲ Show 20 Lines • Show All 373 Lines • Show Last 20 Lines |