Changeset View
Changeset View
Standalone View
Standalone View
platformsupport/scenes/opengl/abstract_egl_backend.h
Show All 33 Lines | |||||
34 | { | 34 | { | ||
35 | class BufferInterface; | 35 | class BufferInterface; | ||
36 | } | 36 | } | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | namespace KWin | 39 | namespace KWin | ||
40 | { | 40 | { | ||
41 | 41 | | |||
42 | class EglDmabuf; | ||||
43 | | ||||
42 | class KWIN_EXPORT AbstractEglBackend : public QObject, public OpenGLBackend | 44 | class KWIN_EXPORT AbstractEglBackend : public QObject, public OpenGLBackend | ||
43 | { | 45 | { | ||
44 | Q_OBJECT | 46 | Q_OBJECT | ||
45 | public: | 47 | public: | ||
46 | ~AbstractEglBackend() override; | 48 | ~AbstractEglBackend() override; | ||
47 | bool makeCurrent() override; | 49 | bool makeCurrent() override; | ||
48 | void doneCurrent() override; | 50 | void doneCurrent() override; | ||
49 | 51 | | |||
Show All 30 Lines | |||||
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; | ||
87 | QList<QByteArray> m_clientExtensions; | 89 | QList<QByteArray> m_clientExtensions; | ||
90 | EglDmabuf *m_dmaBuf = nullptr; | ||||
88 | }; | 91 | }; | ||
89 | 92 | | |||
90 | class KWIN_EXPORT AbstractEglTexture : public SceneOpenGLTexturePrivate | 93 | class KWIN_EXPORT AbstractEglTexture : public SceneOpenGLTexturePrivate | ||
91 | { | 94 | { | ||
92 | public: | 95 | public: | ||
93 | ~AbstractEglTexture() override; | 96 | ~AbstractEglTexture() override; | ||
94 | bool loadTexture(WindowPixmap *pixmap) override; | 97 | bool loadTexture(WindowPixmap *pixmap) override; | ||
95 | void updateTexture(WindowPixmap *pixmap) override; | 98 | void updateTexture(WindowPixmap *pixmap) override; | ||
Show All 28 Lines |