1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWAYLANDEGLPLATFORMINTEGRATION_H
5#define QWAYLANDEGLPLATFORMINTEGRATION_H
6
7#include <QtWaylandClient/private/qwaylandintegration_p.h>
8
9#include <QtWaylandEglClientHwIntegration/private/qwaylandeglclientbufferintegration_p.h>
10
11QT_BEGIN_NAMESPACE
12
13namespace QtWaylandClient {
14
15class QWaylandEglPlatformIntegration : public QWaylandIntegration
16{
17public:
18 QWaylandEglPlatformIntegration()
19 : m_client_buffer_integration(new QWaylandEglClientBufferIntegration())
20 {
21 m_client_buffer_integration->initialize(display: display());
22 }
23
24 QWaylandEglClientBufferIntegration *clientBufferIntegration() const override
25 { return m_client_buffer_integration; }
26
27private:
28 QWaylandEglClientBufferIntegration *m_client_buffer_integration;
29};
30
31}
32
33QT_END_NAMESPACE
34
35#endif
36

source code of qtwayland/src/plugins/platforms/qwayland-egl/qwaylandeglplatformintegration.h