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