Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_backend.cpp
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Line(s) | 74 | DrmBackend::DrmBackend(QObject *parent) | |||
---|---|---|---|---|---|
78 | , m_dpmsFilter() | 78 | , m_dpmsFilter() | ||
79 | { | 79 | { | ||
80 | #if HAVE_EGL_STREAMS | 80 | #if HAVE_EGL_STREAMS | ||
81 | if (qEnvironmentVariableIsSet("KWIN_DRM_USE_EGL_STREAMS")) { | 81 | if (qEnvironmentVariableIsSet("KWIN_DRM_USE_EGL_STREAMS")) { | ||
82 | m_useEglStreams = true; | 82 | m_useEglStreams = true; | ||
83 | } | 83 | } | ||
84 | #endif | 84 | #endif | ||
85 | setSupportsGammaControl(true); | 85 | setSupportsGammaControl(true); | ||
86 | handleOutputs(); | | |||
87 | } | 86 | } | ||
88 | 87 | | |||
89 | DrmBackend::~DrmBackend() | 88 | DrmBackend::~DrmBackend() | ||
90 | { | 89 | { | ||
91 | writeOutputsConfiguration(); | 90 | writeOutputsConfiguration(); | ||
92 | #if HAVE_GBM | 91 | #if HAVE_GBM | ||
93 | if (m_gbmDevice) { | 92 | if (m_gbmDevice) { | ||
94 | gbm_device_destroy(m_gbmDevice); | 93 | gbm_device_destroy(m_gbmDevice); | ||
▲ Show 20 Lines • Show All 750 Lines • Show Last 20 Lines |