Changeset View
Changeset View
Standalone View
Standalone View
platformsupport/scenes/opengl/abstract_egl_backend.cpp
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Line(s) | 146 | { | |||
---|---|---|---|---|---|
147 | setSupportsBufferAge(false); | 147 | setSupportsBufferAge(false); | ||
148 | 148 | | |||
149 | if (hasExtension(QByteArrayLiteral("EGL_EXT_buffer_age"))) { | 149 | if (hasExtension(QByteArrayLiteral("EGL_EXT_buffer_age"))) { | ||
150 | const QByteArray useBufferAge = qgetenv("KWIN_USE_BUFFER_AGE"); | 150 | const QByteArray useBufferAge = qgetenv("KWIN_USE_BUFFER_AGE"); | ||
151 | 151 | | |||
152 | if (useBufferAge != "0") | 152 | if (useBufferAge != "0") | ||
153 | setSupportsBufferAge(true); | 153 | setSupportsBufferAge(true); | ||
154 | } | 154 | } | ||
155 | | ||||
156 | setSupportsPartialUpdate(hasExtension(QByteArrayLiteral("EGL_KHR_partial_update"))); | ||||
155 | } | 157 | } | ||
156 | 158 | | |||
157 | void AbstractEglBackend::initWayland() | 159 | void AbstractEglBackend::initWayland() | ||
158 | { | 160 | { | ||
159 | if (!WaylandServer::self()) { | 161 | if (!WaylandServer::self()) { | ||
160 | return; | 162 | return; | ||
161 | } | 163 | } | ||
162 | if (hasExtension(QByteArrayLiteral("EGL_WL_bind_wayland_display"))) { | 164 | if (hasExtension(QByteArrayLiteral("EGL_WL_bind_wayland_display"))) { | ||
▲ Show 20 Lines • Show All 550 Lines • Show Last 20 Lines |