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
brcmeglintegration.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:critical reason:network-protocol
4
5#ifndef BRCMEGLINTEGRATION_H
6#define BRCMEGLINTEGRATION_H
7
8#include <QtWaylandCompositor/private/qwlclientbufferintegration_p.h>
9#include "qwayland-server-brcm.h"
10
11#include <QtCore/QScopedPointer>
12
13#include <private/qwlclientbuffer_p.h>
14
15QT_BEGIN_NAMESPACE
16
17class BrcmEglIntegrationPrivate;
18
20{
22public:
24
25 void initializeHardware(struct ::wl_display *display) override;
26 QtWayland::ClientBuffer *createBufferFor(wl_resource *buffer) override;
27
28protected:
29 void brcm_bind_resource(Resource *resource) override;
30 void brcm_create_buffer(Resource *resource, uint32_t id, int32_t width, int32_t height, wl_array *data) override;
31
32private:
35};
36
38{
39public:
40 BrcmEglClientBuffer(BrcmEglIntegration *integration, wl_resource *buffer);
41
43 QSize size() const override;
44 QWaylandSurface::Origin origin() const override;
45 QOpenGLTexture *toOpenGlTexture(int plane) override;
46private:
47 BrcmEglIntegration *m_integration = nullptr;
48 QOpenGLTexture *m_texture = nullptr;
49};
50
51
52QT_END_NAMESPACE
53
54#endif // BRCMEGLINTEGRATION_H
QWaylandBufferRef::BufferFormatEgl bufferFormatEgl() const override
QSize size() const override
BrcmEglClientBuffer(BrcmEglIntegration *integration, wl_resource *buffer)
QWaylandSurface::Origin origin() const override
QOpenGLTexture * toOpenGlTexture(int plane) override
void brcm_bind_resource(Resource *resource) override
QtWayland::ClientBuffer * createBufferFor(wl_resource *buffer) override
void brcm_create_buffer(Resource *resource, uint32_t id, int32_t width, int32_t height, wl_array *data) override
Combined button and popup list for selecting options.