Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/egl_gbm_backend.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 64 | struct Output { | |||
---|---|---|---|---|---|
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 | struct { | 75 | struct { | ||
76 | GLuint framebuffer = 0; | 76 | GLuint framebuffer = 0; | ||
77 | GLuint texture = 0; | 77 | GLuint texture = 0; | ||
78 | std::shared_ptr<GLVertexBuffer> vbo; | 78 | std::shared_ptr<GLVertexBuffer> vbo; | ||
79 | std::shared_ptr<GLShader> shader; | | |||
80 | } render; | 79 | } render; | ||
81 | }; | 80 | }; | ||
82 | 81 | | |||
83 | void createOutput(DrmOutput *drmOutput); | 82 | void createOutput(DrmOutput *drmOutput); | ||
84 | bool resetOutput(Output &output, DrmOutput *drmOutput); | 83 | bool resetOutput(Output &output, DrmOutput *drmOutput); | ||
85 | std::shared_ptr<GbmSurface> createGbmSurface(const QSize &size) const; | 84 | std::shared_ptr<GbmSurface> createGbmSurface(const QSize &size) const; | ||
86 | EGLSurface createEglSurface(std::shared_ptr<GbmSurface> gbmSurface) const; | 85 | EGLSurface createEglSurface(std::shared_ptr<GbmSurface> gbmSurface) const; | ||
87 | 86 | | |||
88 | bool makeContextCurrent(const Output &output) const; | 87 | bool makeContextCurrent(const Output &output) const; | ||
89 | void setViewport(const Output &output) const; | 88 | void setViewport(const Output &output) const; | ||
90 | 89 | | |||
91 | bool resetFramebuffer(Output &output); | 90 | bool resetFramebuffer(Output &output); | ||
92 | bool initRenderTarget(Output &output); | 91 | void initRenderTarget(Output &output); | ||
93 | 92 | | |||
94 | void prepareRenderFramebuffer(const Output &output) const; | 93 | void prepareRenderFramebuffer(const Output &output) const; | ||
95 | void renderFramebufferToSurface(Output &output); | 94 | void renderFramebufferToSurface(Output &output); | ||
96 | 95 | | |||
97 | void presentOnOutput(Output &output); | 96 | void presentOnOutput(Output &output); | ||
98 | 97 | | |||
99 | void removeOutput(DrmOutput *drmOutput); | 98 | void removeOutput(DrmOutput *drmOutput); | ||
100 | void cleanupOutput(Output &output); | 99 | void cleanupOutput(Output &output); | ||
Show All 24 Lines |