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"))); | ||||
157 | setSupportsSwapBuffersWithDamage(hasExtension(QByteArrayLiteral("EGL_EXT_swap_buffers_with_damage"))); | ||||
155 | } | 158 | } | ||
156 | 159 | | |||
157 | void AbstractEglBackend::initWayland() | 160 | void AbstractEglBackend::initWayland() | ||
158 | { | 161 | { | ||
159 | if (!WaylandServer::self()) { | 162 | if (!WaylandServer::self()) { | ||
160 | return; | 163 | return; | ||
161 | } | 164 | } | ||
162 | if (hasExtension(QByteArrayLiteral("EGL_WL_bind_wayland_display"))) { | 165 | if (hasExtension(QByteArrayLiteral("EGL_WL_bind_wayland_display"))) { | ||
▲ Show 20 Lines • Show All 550 Lines • Show Last 20 Lines |