78 connect(m_extension, &TextureSharingExtension::bufferReceived,
this, &SharedTextureRegistry::receiveBuffer);
79 connect(m_extension, &TextureSharingExtension::activeChanged,
this, &SharedTextureRegistry::handleExtensionActive);
QSGTexture * createTexture(QQuickWindow *window) const override
This function is called on the scene graph rendering thread to create a QSGTexture instance from the ...
SharedTextureFactory(const QtWaylandClient::QWaylandServerBuffer *buffer, const QString &id, SharedTextureRegistry *registry)
QSize textureSize() const override
Returns the size of the texture.
~SharedTextureFactory() override
int textureByteCount() const override
Returns the number of bytes of memory the texture consumes.
~SharedTextureProvider() override
QQuickImageResponse * requestImageResponse(const QString &id, const QSize &requestedSize) override
Implement this method to return the job that will provide the texture with id.
const QtWaylandClient::QWaylandServerBuffer * bufferForId(const QString &id) const
static bool preinitialize()
void abandonBuffer(const QString &id)
void requestBuffer(const QString &id)
~SharedTextureRegistry() override