Changeset View
Changeset View
Standalone View
Standalone View
abstract_egl_backend.h
Show All 26 Lines | |||||
27 | class QOpenGLFramebufferObject; | 27 | class QOpenGLFramebufferObject; | ||
28 | 28 | | |||
29 | namespace KWin | 29 | namespace KWin | ||
30 | { | 30 | { | ||
31 | 31 | | |||
32 | class KWIN_EXPORT AbstractEglBackend : public OpenGLBackend | 32 | class KWIN_EXPORT AbstractEglBackend : public OpenGLBackend | ||
33 | { | 33 | { | ||
34 | public: | 34 | public: | ||
35 | virtual ~AbstractEglBackend(); | 35 | ~AbstractEglBackend() override; | ||
36 | bool makeCurrent() override; | 36 | bool makeCurrent() override; | ||
37 | void doneCurrent() override; | 37 | void doneCurrent() override; | ||
38 | 38 | | |||
39 | EGLDisplay eglDisplay() const { | 39 | EGLDisplay eglDisplay() const { | ||
40 | return m_display; | 40 | return m_display; | ||
41 | } | 41 | } | ||
42 | EGLContext context() const { | 42 | EGLContext context() const { | ||
43 | return m_context; | 43 | return m_context; | ||
Show All 34 Lines | 75 | private: | |||
78 | EGLContext m_context = EGL_NO_CONTEXT; | 78 | EGLContext m_context = EGL_NO_CONTEXT; | ||
79 | EGLConfig m_config = nullptr; | 79 | EGLConfig m_config = nullptr; | ||
80 | QList<QByteArray> m_clientExtensions; | 80 | QList<QByteArray> m_clientExtensions; | ||
81 | }; | 81 | }; | ||
82 | 82 | | |||
83 | class KWIN_EXPORT AbstractEglTexture : public SceneOpenGL::TexturePrivate | 83 | class KWIN_EXPORT AbstractEglTexture : public SceneOpenGL::TexturePrivate | ||
84 | { | 84 | { | ||
85 | public: | 85 | public: | ||
86 | virtual ~AbstractEglTexture(); | 86 | ~AbstractEglTexture() override; | ||
87 | bool loadTexture(WindowPixmap *pixmap) override; | 87 | bool loadTexture(WindowPixmap *pixmap) override; | ||
88 | void updateTexture(WindowPixmap *pixmap) override; | 88 | void updateTexture(WindowPixmap *pixmap) override; | ||
89 | OpenGLBackend *backend() override; | 89 | OpenGLBackend *backend() override; | ||
90 | 90 | | |||
91 | protected: | 91 | protected: | ||
92 | AbstractEglTexture(SceneOpenGL::Texture *texture, AbstractEglBackend *backend); | 92 | AbstractEglTexture(SceneOpenGL::Texture *texture, AbstractEglBackend *backend); | ||
93 | EGLImageKHR image() const { | 93 | EGLImageKHR image() const { | ||
94 | return m_image; | 94 | return m_image; | ||
Show All 21 Lines |