Changeset View
Changeset View
Standalone View
Standalone View
platform.cpp
Show All 13 Lines | |||||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "platform.h" | 20 | #include "platform.h" | ||
21 | #include <config-kwin.h> | 21 | #include <config-kwin.h> | ||
22 | #include "abstract_egl_backend.h" | | |||
23 | #include "composite.h" | 22 | #include "composite.h" | ||
24 | #include "cursor.h" | 23 | #include "cursor.h" | ||
25 | #include "effects.h" | 24 | #include "effects.h" | ||
26 | #include "input.h" | 25 | #include "input.h" | ||
27 | #include "overlaywindow.h" | 26 | #include "overlaywindow.h" | ||
28 | #include "outline.h" | 27 | #include "outline.h" | ||
29 | #include "pointer_input.h" | 28 | #include "pointer_input.h" | ||
30 | #include "scene_opengl.h" | 29 | #include "scene.h" | ||
31 | #include "screenedge.h" | 30 | #include "screenedge.h" | ||
32 | #include "wayland_server.h" | 31 | #include "wayland_server.h" | ||
33 | 32 | | |||
34 | namespace KWin | 33 | namespace KWin | ||
35 | { | 34 | { | ||
36 | 35 | | |||
37 | Platform::Platform(QObject *parent) | 36 | Platform::Platform(QObject *parent) | ||
38 | : QObject(parent) | 37 | : QObject(parent) | ||
▲ Show 20 Lines • Show All 309 Lines • ▼ Show 20 Line(s) | |||||
348 | void Platform::warpPointer(const QPointF &globalPos) | 347 | void Platform::warpPointer(const QPointF &globalPos) | ||
349 | { | 348 | { | ||
350 | Q_UNUSED(globalPos) | 349 | Q_UNUSED(globalPos) | ||
351 | } | 350 | } | ||
352 | 351 | | |||
353 | bool Platform::supportsQpaContext() const | 352 | bool Platform::supportsQpaContext() const | ||
354 | { | 353 | { | ||
355 | if (Compositor *c = Compositor::self()) { | 354 | if (Compositor *c = Compositor::self()) { | ||
356 | if (SceneOpenGL *s = dynamic_cast<SceneOpenGL*>(c->scene())) { | 355 | return c->scene()->openGLPlatformInterfaceExtensions().contains(QByteArrayLiteral("EGL_KHR_surfaceless_context")); | ||
357 | return s->backend()->hasExtension(QByteArrayLiteral("EGL_KHR_surfaceless_context")); | | |||
358 | } | | |||
359 | } | 356 | } | ||
360 | return false; | 357 | return false; | ||
361 | } | 358 | } | ||
362 | 359 | | |||
363 | EGLDisplay KWin::Platform::sceneEglDisplay() const | 360 | EGLDisplay KWin::Platform::sceneEglDisplay() const | ||
364 | { | 361 | { | ||
365 | return m_eglDisplay; | 362 | return m_eglDisplay; | ||
366 | } | 363 | } | ||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |