| 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 | #include "qwaylandhardwareintegration_p.h" |
| 5 | |
| 6 | #include "qwaylanddisplay_p.h" |
| 7 | QT_BEGIN_NAMESPACE |
| 8 | |
| 9 | namespace QtWaylandClient { |
| 10 | |
| 11 | QWaylandHardwareIntegration::QWaylandHardwareIntegration(struct ::wl_registry *registry, int id) |
| 12 | : qt_hardware_integration(registry, id, 1) |
| 13 | { |
| 14 | } |
| 15 | |
| 16 | QString QWaylandHardwareIntegration::clientBufferIntegration() |
| 17 | { |
| 18 | return m_client_buffer; |
| 19 | } |
| 20 | |
| 21 | QString QWaylandHardwareIntegration::serverBufferIntegration() |
| 22 | { |
| 23 | return m_server_buffer; |
| 24 | } |
| 25 | |
| 26 | void QWaylandHardwareIntegration::hardware_integration_client_backend(const QString &name) |
| 27 | { |
| 28 | m_client_buffer = name; |
| 29 | } |
| 30 | |
| 31 | void QWaylandHardwareIntegration::hardware_integration_server_backend(const QString &name) |
| 32 | { |
| 33 | m_server_buffer = name; |
| 34 | } |
| 35 | |
| 36 | } |
| 37 | |
| 38 | QT_END_NAMESPACE |
| 39 |
