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
qwlclientbufferintegration_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWAYLANDCLIENTBUFFERINTEGRATION_H
5#define QWAYLANDCLIENTBUFFERINTEGRATION_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
19#include <QtWaylandCompositor/qwaylandsurface.h>
20#include <QtWaylandCompositor/qwaylandbufferref.h>
21#include <QtCore/QSize>
22#include <QtCore/private/qglobal_p.h>
23#include <wayland-server-core.h>
24
26
28class QOpenGLTexture;
29
30namespace QtWayland {
31class Display;
32
33class Q_WAYLANDCOMPOSITOR_EXPORT ClientBufferIntegration
34{
35public:
38
40 QWaylandCompositor *compositor() const { return m_compositor; }
41
42 virtual void initializeHardware(struct ::wl_display *display) = 0;
43
44 virtual ClientBuffer *createBufferFor(struct ::wl_resource *buffer) = 0;
45 virtual bool isProtected(struct ::wl_resource *buffer) { Q_UNUSED(buffer); return false; }
46
47protected:
48 QWaylandCompositor *m_compositor = nullptr;
49};
50
51}
52
54
55#endif // QWAYLANDCLIENTBUFFERINTEGRATION_H
\inmodule QtGui
\qmltype WaylandCompositor \instantiates QWaylandCompositor \inqmlmodule QtWayland....
virtual void initializeHardware(struct ::wl_display *display)=0
virtual bool isProtected(struct ::wl_resource *buffer)
virtual ClientBuffer * createBufferFor(struct ::wl_resource *buffer)=0
void setCompositor(QWaylandCompositor *compositor)
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
static QOpenGLCompositor * compositor
GLenum GLuint buffer
#define Q_UNUSED(x)
struct _XDisplay Display