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// Qt-Security score:significant reason:default
4
5#ifndef WAYLANDEGLSTREAMINTEGRATION_H
6#define WAYLANDEGLSTREAMINTEGRATION_H
7
8#include <QtWaylandCompositor/private/qwlclientbufferintegration_p.h>
9#include <QtCore/QScopedPointer>
10#include <QtWaylandCompositor/private/qwlclientbuffer_p.h>
11
12QT_BEGIN_NAMESPACE
13
14class WaylandEglStreamClientBufferIntegrationPrivate;
15
17{
19public:
22
23 void initializeHardware(struct ::wl_display *display) override;
24
25 QtWayland::ClientBuffer *createBufferFor(wl_resource *buffer) override;
26
27 void attachEglStreamConsumer(struct ::wl_resource *wl_surface, struct ::wl_resource *wl_buffer);
28
29private:
32};
33
35
37{
38public:
40
42 QSize size() const override;
43 QWaylandSurface::Origin origin() const override;
44 QOpenGLTexture *toOpenGlTexture(int plane) override;
45 void setCommitted(QRegion &damage) override;
46
47private:
50
51 WaylandEglStreamClientBuffer(WaylandEglStreamClientBufferIntegration* integration, wl_resource *bufferResource);
52
53 ControllerBufferState *d = nullptr;
54 WaylandEglStreamClientBufferIntegration *m_integration = nullptr;
55};
56
57QT_END_NAMESPACE
58
59#endif // WAYLANDEGLSTREAMINTEGRATION_H
QOpenGLTexture * toOpenGlTexture(int plane) override
QWaylandSurface::Origin origin() const override
void setCommitted(QRegion &damage) override
QWaylandBufferRef::BufferFormatEgl bufferFormatEgl() const override
Combined button and popup list for selecting options.