Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/egl_gbm_backend.cpp
Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Line(s) | |||||
136 | bool EglGbmBackend::initRenderingContext() | 136 | bool EglGbmBackend::initRenderingContext() | ||
137 | { | 137 | { | ||
138 | initBufferConfigs(); | 138 | initBufferConfigs(); | ||
139 | 139 | | |||
140 | if (!createContext()) { | 140 | if (!createContext()) { | ||
141 | return false; | 141 | return false; | ||
142 | } | 142 | } | ||
143 | 143 | | |||
144 | const auto outputs = m_backend->outputs(); | 144 | const auto outputs = m_backend->drmOutputs(); | ||
145 | for (DrmOutput *drmOutput: outputs) { | 145 | for (DrmOutput *drmOutput: outputs) { | ||
146 | createOutput(drmOutput); | 146 | createOutput(drmOutput); | ||
147 | } | 147 | } | ||
graesslin: Does the class need a DrmOutput or could it be changed to operate on Output instead? | |||||
148 | if (m_outputs.isEmpty()) { | 148 | if (m_outputs.isEmpty()) { | ||
149 | qCCritical(KWIN_DRM) << "Create Window Surfaces failed"; | 149 | qCCritical(KWIN_DRM) << "Create Window Surfaces failed"; | ||
150 | return false; | 150 | return false; | ||
151 | } | 151 | } | ||
152 | // set our first surface as the one for the abstract backend, just to make it happy | 152 | // set our first surface as the one for the abstract backend, just to make it happy | ||
153 | setSurface(m_outputs.first().eglSurface); | 153 | setSurface(m_outputs.first().eglSurface); | ||
154 | 154 | | |||
155 | return makeContextCurrent(m_outputs.first()); | 155 | return makeContextCurrent(m_outputs.first()); | ||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |
Does the class need a DrmOutput or could it be changed to operate on Output instead?