Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/egl_gbm_backend.h
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 59 | private: | |||
---|---|---|---|---|---|
64 | struct Output { | 64 | struct Output { | ||
65 | DrmOutput *output = nullptr; | 65 | DrmOutput *output = nullptr; | ||
66 | DrmBuffer *buffer = nullptr; | 66 | DrmBuffer *buffer = nullptr; | ||
67 | std::shared_ptr<GbmSurface> gbmSurface; | 67 | std::shared_ptr<GbmSurface> gbmSurface; | ||
68 | EGLSurface eglSurface = EGL_NO_SURFACE; | 68 | EGLSurface eglSurface = EGL_NO_SURFACE; | ||
69 | int bufferAge = 0; | 69 | int bufferAge = 0; | ||
70 | /** | 70 | /** | ||
71 | * @brief The damage history for the past 10 frames. | 71 | * @brief The damage history for the past 10 frames. | ||
72 | */ | 72 | **/ | ||
73 | QList<QRegion> damageHistory; | 73 | QList<QRegion> damageHistory; | ||
74 | }; | 74 | }; | ||
75 | bool resetOutput(Output &output, DrmOutput *drmOutput); | 75 | bool resetOutput(Output &output, DrmOutput *drmOutput); | ||
76 | bool makeContextCurrent(const Output &output); | 76 | bool makeContextCurrent(const Output &output); | ||
77 | void presentOnOutput(Output &output); | 77 | void presentOnOutput(Output &output); | ||
78 | void cleanupOutput(const Output &output); | 78 | void cleanupOutput(const Output &output); | ||
79 | void createOutput(DrmOutput *output); | 79 | void createOutput(DrmOutput *output); | ||
80 | DrmBackend *m_backend; | 80 | DrmBackend *m_backend; | ||
Show All 21 Lines |