Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/egl_gbm_backend.cpp
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | |||||
69 | { | 69 | { | ||
70 | for (auto it = m_outputs.constBegin(); it != m_outputs.constEnd(); ++it) { | 70 | for (auto it = m_outputs.constBegin(); it != m_outputs.constEnd(); ++it) { | ||
71 | cleanupOutput(*it); | 71 | cleanupOutput(*it); | ||
72 | } | 72 | } | ||
73 | } | 73 | } | ||
74 | 74 | | |||
75 | void EglGbmBackend::cleanupOutput(const Output &o) | 75 | void EglGbmBackend::cleanupOutput(const Output &o) | ||
76 | { | 76 | { | ||
77 | o.output->cleanup(); | 77 | o.output->releaseGbm(); | ||
78 | 78 | | |||
79 | if (o.eglSurface != EGL_NO_SURFACE) { | 79 | if (o.eglSurface != EGL_NO_SURFACE) { | ||
80 | eglDestroySurface(eglDisplay(), o.eglSurface); | 80 | eglDestroySurface(eglDisplay(), o.eglSurface); | ||
81 | } | 81 | } | ||
82 | if (o.gbmSurface) { | 82 | if (o.gbmSurface) { | ||
83 | gbm_surface_destroy(o.gbmSurface); | 83 | gbm_surface_destroy(o.gbmSurface); | ||
84 | } | 84 | } | ||
85 | } | 85 | } | ||
▲ Show 20 Lines • Show All 269 Lines • Show Last 20 Lines |