Changeset View
Changeset View
Standalone View
Standalone View
platformsupport/scenes/opengl/abstract_egl_backend.h
Show All 32 Lines | |||||
33 | namespace Server | 33 | namespace Server | ||
34 | { | 34 | { | ||
35 | class BufferInterface; | 35 | class BufferInterface; | ||
36 | } | 36 | } | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | namespace KWin | 39 | namespace KWin | ||
40 | { | 40 | { | ||
41 | class AbstractOutput; | ||||
41 | 42 | | |||
42 | class KWIN_EXPORT AbstractEglBackend : public QObject, public OpenGLBackend | 43 | class KWIN_EXPORT AbstractEglBackend : public QObject, public OpenGLBackend | ||
43 | { | 44 | { | ||
44 | Q_OBJECT | 45 | Q_OBJECT | ||
45 | public: | 46 | public: | ||
46 | virtual ~AbstractEglBackend(); | 47 | virtual ~AbstractEglBackend(); | ||
47 | bool makeCurrent() override; | 48 | bool makeCurrent() override; | ||
48 | void doneCurrent() override; | 49 | void doneCurrent() override; | ||
Show All 23 Lines | 64 | protected: | |||
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(); | ||
79 | 80 | | |||
81 | static QRect orientateRect(AbstractOutput *output, const QRect &r); | ||||
zzag: Pointers have to be aligned to the right, i.e.
```lang=cpp
AbstractOutput *output,
``` | |||||
82 | | ||||
80 | private: | 83 | private: | ||
81 | void unbindWaylandDisplay(); | 84 | void unbindWaylandDisplay(); | ||
82 | 85 | | |||
83 | EGLDisplay m_display = EGL_NO_DISPLAY; | 86 | EGLDisplay m_display = EGL_NO_DISPLAY; | ||
84 | EGLSurface m_surface = EGL_NO_SURFACE; | 87 | EGLSurface m_surface = EGL_NO_SURFACE; | ||
85 | EGLContext m_context = EGL_NO_CONTEXT; | 88 | EGLContext m_context = EGL_NO_CONTEXT; | ||
86 | EGLConfig m_config = nullptr; | 89 | EGLConfig m_config = nullptr; | ||
87 | QList<QByteArray> m_clientExtensions; | 90 | QList<QByteArray> m_clientExtensions; | ||
Show All 35 Lines |
Pointers have to be aligned to the right, i.e.