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
qwlbuffermanager.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// Qt-Security score:significant reason:default
4
6#include <QWaylandCompositor>
7#include <QtWaylandCompositor/private/qwaylandcompositor_p.h>
8#include <QtWaylandCompositor/private/qwlclientbufferintegration_p.h>
9#include <QDebug>
10
12
13namespace QtWayland {
14
21
23{
25 {
26 notify = BufferManager::destroy_listener_callback;
27 wl_list_init(&this->link);
28 }
29
30 BufferManager *d = nullptr;
31};
32
42
44{
45 if (!buffer_resource)
46 return nullptr;
47
49 if (it != m_buffers.end())
50 return it.value();
51
52 ClientBuffer *newBuffer = nullptr;
53
56 if (newBuffer)
57 break;
58 }
59
60 if (newBuffer)
62 else
63 qCWarning(qLcWaylandCompositorHardwareIntegration) << "Could not create buffer for resource.";
64
65 return newBuffer;
66}
67
68
70{
73 struct ::wl_resource *buffer = static_cast<struct ::wl_resource *>(data);
74
76 delete destroy_listener;
77
80
82
83 if (!clientBuffer)
84 return;
85
87}
88
89}
90QT_END_NAMESPACE
Combined button and popup list for selecting options.