Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef BRCMEGLINTEGRATION_H
5#define BRCMEGLINTEGRATION_H
6
7#include <QtWaylandCompositor/private/qwlclientbufferintegration_p.h>
8#include "qwayland-server-brcm.h"
9
10#include <QtCore/QScopedPointer>
11
12#include <private/qwlclientbuffer_p.h>
13
15
17
18class BrcmEglIntegration : public QtWayland::ClientBufferIntegration, public QtWaylandServer::qt_brcm
19{
20 Q_DECLARE_PRIVATE(BrcmEglIntegration)
21public:
23
24 void initializeHardware(struct ::wl_display *display) override;
25 QtWayland::ClientBuffer *createBufferFor(wl_resource *buffer) override;
26
27protected:
28 void brcm_bind_resource(Resource *resource) override;
29 void brcm_create_buffer(Resource *resource, uint32_t id, int32_t width, int32_t height, wl_array *data) override;
30
31private:
32 Q_DISABLE_COPY(BrcmEglIntegration)
33 QScopedPointer<BrcmEglIntegrationPrivate> d_ptr;
34};
35
37{
38public:
39 BrcmEglClientBuffer(BrcmEglIntegration *integration, wl_resource *buffer);
40
42 QSize size() const override;
43 QWaylandSurface::Origin origin() const override;
44 QOpenGLTexture *toOpenGlTexture(int plane) override;
45private:
46 BrcmEglIntegration *m_integration = nullptr;
47 QOpenGLTexture *m_texture = nullptr;
48};
49
50
52
53#endif // BRCMEGLINTEGRATION_H
54
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 initializeHardware(struct ::wl_display *display) override
void brcm_create_buffer(Resource *resource, uint32_t id, int32_t width, int32_t height, wl_array *data) override
\inmodule QtGui
\inmodule QtCore
Definition qsize.h:25
Origin
This enum type is used to specify the origin of a QWaylandSurface's buffer.
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
GLint GLsizei GLsizei height
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLuint buffer
GLint GLsizei width