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 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | namespace QtWaylandClient { |
14 | |
15 | class QWaylandEglPlatformIntegration : public QWaylandIntegration |
16 | { |
17 | public: |
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 | |
27 | private: |
28 | QWaylandEglClientBufferIntegration *m_client_buffer_integration; |
29 | }; |
30 | |
31 | } |
32 | |
33 | QT_END_NAMESPACE |
34 | |
35 | #endif |
36 |