Changeset View
Changeset View
Standalone View
Standalone View
platformsupport/scenes/opengl/backend.h
Context not available. | |||||
26 | 26 | | |||
---|---|---|---|---|---|
27 | #include <kwin_export.h> | 27 | #include <kwin_export.h> | ||
28 | 28 | | |||
29 | #include <KWayland/Server/linuxdmabuf_v1_interface.h> | ||||
30 | | ||||
29 | namespace KWin | 31 | namespace KWin | ||
30 | { | 32 | { | ||
31 | class OpenGLBackend; | 33 | class OpenGLBackend; | ||
Context not available. | |||||
197 | */ | 199 | */ | ||
198 | void copyPixels(const QRegion ®ion); | 200 | void copyPixels(const QRegion ®ion); | ||
199 | 201 | | |||
202 | /** | ||||
203 | * Returns the list of the DRM format codes supported by the OpenGL backend. | ||||
204 | * | ||||
205 | * The default implementation returns an empty vector. | ||||
206 | */ | ||||
207 | virtual QVector<uint32_t> supportedDrmFormats(); | ||||
208 | | ||||
209 | /** | ||||
210 | * Returns the list of the DRM modifiers supported with the given format. | ||||
211 | * | ||||
212 | * The default implementation returns an empty vector. | ||||
213 | */ | ||||
214 | virtual QVector<uint64_t> supportedDrmModifiers(uint32_t format); | ||||
215 | | ||||
216 | /** | ||||
217 | * Imports a dmabuf-buffer into the OpenGL backend. | ||||
218 | * | ||||
219 | * The default implementation returns nullptr. | ||||
220 | */ | ||||
221 | virtual KWayland::Server::LinuxDmabuf::Buffer *importDmabufBuffer(const QVector<KWayland::Server::LinuxDmabuf::Plane> &planes, | ||||
222 | uint32_t format, | ||||
223 | const QSize &size, | ||||
224 | KWayland::Server::LinuxDmabuf::Flags flags = 0); | ||||
225 | | ||||
200 | protected: | 226 | protected: | ||
201 | /** | 227 | /** | ||
202 | * @brief Backend specific flushing of frame to screen. | 228 | * @brief Backend specific flushing of frame to screen. | ||
Context not available. |