Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwlhwintegration.cpp
Go to the documentation of this file.
1
// Copyright (C) 2017 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
#
include
"qwlhwintegration_p.h"
5
6
#
include
<
QtWaylandCompositor
/
QWaylandCompositor
>
7
8
QT_BEGIN_NAMESPACE
9
10
namespace
QtWayland
{
11
12
HardwareIntegration
::
HardwareIntegration
(QWaylandCompositor *compositor)
13
:
QWaylandCompositorExtensionTemplate
<
HardwareIntegration
>(
compositor
)
14
,
qt_hardware_integration
(
compositor
->
display
(), 1)
15
{
16
}
17
18
void
HardwareIntegration
::
setClientBufferIntegrationName
(
const
QString &name)
19
{
20
m_client_buffer_integration_name = name;
21
}
22
void
HardwareIntegration
::
setServerBufferIntegrationName
(
const
QString &name)
23
{
24
m_server_buffer_integration_name = name;
25
}
26
27
void
HardwareIntegration
::
hardware_integration_bind_resource
(Resource *resource)
28
{
29
if
(!m_client_buffer_integration_name.isEmpty())
30
send_client_backend(resource->handle, m_client_buffer_integration_name);
31
if
(!m_server_buffer_integration_name.isEmpty())
32
send_server_backend(resource->handle, m_server_buffer_integration_name);
33
}
34
35
}
36
37
QT_END_NAMESPACE
QtWayland::HardwareIntegration
Definition
qwlhwintegration_p.h:32
QtWayland::HardwareIntegration::setServerBufferIntegrationName
void setServerBufferIntegrationName(const QString &name)
Definition
qwlhwintegration.cpp:22
QtWayland::HardwareIntegration::HardwareIntegration
HardwareIntegration(QWaylandCompositor *compositor)
Definition
qwlhwintegration.cpp:12
QtWayland::HardwareIntegration::hardware_integration_bind_resource
void hardware_integration_bind_resource(Resource *resource) override
Definition
qwlhwintegration.cpp:27
QtWayland::HardwareIntegration::setClientBufferIntegrationName
void setClientBufferIntegrationName(const QString &name)
Definition
qwlhwintegration.cpp:18
QPlatformGraphicsBufferHelper
\inmodule QtGui
QtWayland
Definition
qwaylanddisplay_p.h:51
qtwayland
src
compositor
hardware_integration
qwlhwintegration.cpp
Generated on
for Qt by
1.14.0