Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/egl_gbm_backend.h
Show All 21 Lines | |||||
22 | #include "abstract_egl_backend.h" | 22 | #include "abstract_egl_backend.h" | ||
23 | #include "scene_opengl.h" | 23 | #include "scene_opengl.h" | ||
24 | 24 | | |||
25 | struct gbm_surface; | 25 | struct gbm_surface; | ||
26 | 26 | | |||
27 | namespace KWin | 27 | namespace KWin | ||
28 | { | 28 | { | ||
29 | class DrmBackend; | 29 | class DrmBackend; | ||
30 | class DrmBuffer; | 30 | class DrmSurfaceBuffer; | ||
31 | class DrmOutput; | 31 | class DrmOutput; | ||
32 | 32 | | |||
33 | /** | 33 | /** | ||
34 | * @brief OpenGL Backend using Egl on a GBM surface. | 34 | * @brief OpenGL Backend using Egl on a GBM surface. | ||
35 | **/ | 35 | **/ | ||
36 | class EglGbmBackend : public QObject, public AbstractEglBackend | 36 | class EglGbmBackend : public QObject, public AbstractEglBackend | ||
37 | { | 37 | { | ||
38 | Q_OBJECT | 38 | Q_OBJECT | ||
Show All 15 Lines | 52 | protected: | |||
54 | void cleanupSurfaces() override; | 54 | void cleanupSurfaces() override; | ||
55 | 55 | | |||
56 | private: | 56 | private: | ||
57 | bool initializeEgl(); | 57 | bool initializeEgl(); | ||
58 | bool initBufferConfigs(); | 58 | bool initBufferConfigs(); | ||
59 | bool initRenderingContext(); | 59 | bool initRenderingContext(); | ||
60 | struct Output { | 60 | struct Output { | ||
61 | DrmOutput *output = nullptr; | 61 | DrmOutput *output = nullptr; | ||
62 | DrmBuffer *buffer = nullptr; | 62 | DrmSurfaceBuffer *buffer = nullptr; | ||
63 | gbm_surface *gbmSurface = nullptr; | 63 | gbm_surface *gbmSurface = nullptr; | ||
64 | EGLSurface eglSurface = EGL_NO_SURFACE; | 64 | EGLSurface eglSurface = EGL_NO_SURFACE; | ||
65 | int bufferAge = 0; | 65 | int bufferAge = 0; | ||
66 | /** | 66 | /** | ||
67 | * @brief The damage history for the past 10 frames. | 67 | * @brief The damage history for the past 10 frames. | ||
68 | */ | 68 | */ | ||
69 | QList<QRegion> damageHistory; | 69 | QList<QRegion> damageHistory; | ||
70 | }; | 70 | }; | ||
Show All 25 Lines |