| 1 | // Copyright (C) 2016 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 <QtWaylandEglCompositorHwIntegration/private/waylandeglclientbufferintegration_p.h> |
| 7 | |
| 8 | QT_BEGIN_NAMESPACE |
| 9 | |
| 10 | class QWaylandEglClientBufferIntegrationPlugin : public QtWayland::ClientBufferIntegrationPlugin |
| 11 | { |
| 12 | Q_OBJECT |
| 13 | Q_PLUGIN_METADATA(IID QtWaylandClientBufferIntegrationFactoryInterface_iid FILE "wayland-egl.json") |
| 14 | public: |
| 15 | QtWayland::ClientBufferIntegration *create(const QString&, const QStringList&) override; |
| 16 | }; |
| 17 | |
| 18 | QtWayland::ClientBufferIntegration *QWaylandEglClientBufferIntegrationPlugin::create(const QString& system, const QStringList& paramList) |
| 19 | { |
| 20 | Q_UNUSED(paramList); |
| 21 | Q_UNUSED(system); |
| 22 | return new WaylandEglClientBufferIntegration(); |
| 23 | } |
| 24 | |
| 25 | QT_END_NAMESPACE |
| 26 | |
| 27 | #include "main.moc" |
| 28 |
