Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
waylandeglstreamintegration.h
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3#ifndef WAYLANDEGLSTREAMINTEGRATION_H
4#define WAYLANDEGLSTREAMINTEGRATION_H
5
6#include <QtWaylandCompositor/private/qwlclientbufferintegration_p.h>
7#include <QtCore/QScopedPointer>
8#include <QtWaylandCompositor/private/qwlclientbuffer_p.h>
9
10QT_BEGIN_NAMESPACE
11
12class WaylandEglStreamClientBufferIntegrationPrivate;
13
15{
17public:
20
21 void initializeHardware(struct ::wl_display *display) override;
22
23 QtWayland::ClientBuffer *createBufferFor(wl_resource *buffer) override;
24
25 void attachEglStreamConsumer(struct ::wl_resource *wl_surface, struct ::wl_resource *wl_buffer);
26
27private:
30};
31
33
35{
36public:
38
40 QSize size() const override;
41 QWaylandSurface::Origin origin() const override;
42 QOpenGLTexture *toOpenGlTexture(int plane) override;
43 void setCommitted(QRegion &damage) override;
44
45private:
48
49 WaylandEglStreamClientBuffer(WaylandEglStreamClientBufferIntegration* integration, wl_resource *bufferResource);
50
51 ControllerBufferState *d = nullptr;
52 WaylandEglStreamClientBufferIntegration *m_integration = nullptr;
53};
54
55QT_END_NAMESPACE
56
57#endif // WAYLANDEGLSTREAMINTEGRATION_H
QOpenGLTexture * toOpenGlTexture(int plane) override
QWaylandSurface::Origin origin() const override
void setCommitted(QRegion &damage) override
QWaylandBufferRef::BufferFormatEgl bufferFormatEgl() const override