4#ifndef QWLTEXTURESHARINGEXTENSION_P_H
5#define QWLTEXTURESHARINGEXTENSION_P_H
18#include "wayland-util.h"
21#include <QtCore/QHash>
23#include <QtWaylandCompositor/QWaylandCompositorExtensionTemplate>
24#include <QtWaylandCompositor/QWaylandQuickExtension>
25#include <QtWaylandCompositor/QWaylandCompositor>
27#include <QQuickImageProvider>
29#include <QtWaylandCompositor/private/qwaylandcompositor_p.h>
30#include <QtWaylandCompositor/private/qwlserverbufferintegration_p.h>
32#include <QtWaylandCompositor/private/qwayland-server-qt-texture-sharing-unstable-v1.h>
38 class ServerBufferIntegration;
59 ,
public QtWaylandServer::zqt_texture_sharing_v1
81 void cleanupBuffers();
84 void zqt_texture_sharing_v1_request_image(Resource *resource,
const QString &
key)
override;
85 void zqt_texture_sharing_v1_abandon_image(Resource *resource,
const QString &
key)
override;
86 void zqt_texture_sharing_v1_destroy_resource(Resource *resource)
override;
99 bool initServerBufferIntegration();
102 void dumpBufferInfo();
108 bool usedLocally =
false;
The QQuickAsyncImageProvider class provides an interface for asynchronous control of QML image reques...
virtual QQuickImageResponse * requestImageResponse(const QString &id, const QSize &requestedSize)=0
Implement this method to return the job that will provide the texture with id.
The QQuickImageResponse class provides an interface for asynchronous image loading in QQuickAsyncImag...
\macro QT_RESTRICTED_CAST_FROM_ASCII
\inmodule QtWaylandCompositor
\qmltype WaylandCompositor \instantiates QWaylandCompositor \inqmlmodule QtWayland....
virtual bool customPixelData(const QString &key, QByteArray *data, QSize *size, uint *glInternalFormat)
void bufferResult(const QString &key, QtWayland::ServerBuffer *buffer)
static QWaylandTextureSharingExtension * self()
Combined button and popup list for selecting options.
static QOpenGLCompositor * compositor
GLboolean GLboolean GLboolean b
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLsizei const GLchar *const * path
#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS(className)