Changeset View
Changeset View
Standalone View
Standalone View
platformsupport/scenes/opengl/abstract_egl_backend.h
Show All 19 Lines | |||||
20 | #ifndef KWIN_ABSTRACT_EGL_BACKEND_H | 20 | #ifndef KWIN_ABSTRACT_EGL_BACKEND_H | ||
21 | #define KWIN_ABSTRACT_EGL_BACKEND_H | 21 | #define KWIN_ABSTRACT_EGL_BACKEND_H | ||
22 | #include "backend.h" | 22 | #include "backend.h" | ||
23 | #include "texture.h" | 23 | #include "texture.h" | ||
24 | 24 | | |||
25 | #include <QObject> | 25 | #include <QObject> | ||
26 | #include <epoxy/egl.h> | 26 | #include <epoxy/egl.h> | ||
27 | #include <fixx11h.h> | 27 | #include <fixx11h.h> | ||
28 | #include <wayland-server-core.h> | ||||
28 | 29 | | |||
29 | class QOpenGLFramebufferObject; | 30 | class QOpenGLFramebufferObject; | ||
30 | 31 | | |||
31 | namespace KWayland | 32 | namespace KWayland | ||
32 | { | 33 | { | ||
33 | namespace Server | 34 | namespace Server | ||
34 | { | 35 | { | ||
35 | class BufferInterface; | 36 | class BufferInterface; | ||
Show All 35 Lines | 64 | protected: | |||
71 | void initKWinGL(); | 72 | void initKWinGL(); | ||
72 | void initBufferAge(); | 73 | void initBufferAge(); | ||
73 | void initClientExtensions(); | 74 | void initClientExtensions(); | ||
74 | void initWayland(); | 75 | void initWayland(); | ||
75 | bool hasClientExtension(const QByteArray &ext) const; | 76 | bool hasClientExtension(const QByteArray &ext) const; | ||
76 | bool isOpenGLES() const; | 77 | bool isOpenGLES() const; | ||
77 | 78 | | |||
78 | bool createContext(); | 79 | bool createContext(); | ||
80 | bool queryWaylandBufferWL(wl_resource *resource, EGLint attribute, EGLint *value); | ||||
79 | 81 | | |||
80 | private: | 82 | private: | ||
81 | void unbindWaylandDisplay(); | 83 | void unbindWaylandDisplay(); | ||
82 | 84 | | |||
83 | EGLDisplay m_display = EGL_NO_DISPLAY; | 85 | EGLDisplay m_display = EGL_NO_DISPLAY; | ||
84 | EGLSurface m_surface = EGL_NO_SURFACE; | 86 | EGLSurface m_surface = EGL_NO_SURFACE; | ||
85 | EGLContext m_context = EGL_NO_CONTEXT; | 87 | EGLContext m_context = EGL_NO_CONTEXT; | ||
86 | EGLConfig m_config = nullptr; | 88 | EGLConfig m_config = nullptr; | ||
Show All 36 Lines |