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