1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#include <QtWaylandCompositor/private/qwlclientbufferintegrationfactory_p.h>
5#include <QtWaylandCompositor/private/qwlclientbufferintegrationplugin_p.h>
6#include "linuxdmabufclientbufferintegration.h"
7
8QT_BEGIN_NAMESPACE
9
10class QWaylandDmabufClientBufferIntegrationPlugin : public QtWayland::ClientBufferIntegrationPlugin
11{
12 Q_OBJECT
13 Q_PLUGIN_METADATA(IID QtWaylandClientBufferIntegrationFactoryInterface_iid FILE "linux-dmabuf-unstable-v1.json")
14public:
15 QtWayland::ClientBufferIntegration *create(const QString& key, const QStringList& paramList) override;
16};
17
18QtWayland::ClientBufferIntegration *QWaylandDmabufClientBufferIntegrationPlugin::create(const QString& key, const QStringList& paramList)
19{
20 Q_UNUSED(paramList);
21 Q_UNUSED(key);
22 return new LinuxDmabufClientBufferIntegration();
23}
24
25QT_END_NAMESPACE
26
27#include "main.moc"
28

source code of qtwayland/src/plugins/hardwareintegration/compositor/linux-dmabuf-unstable-v1/main.cpp