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
qwltextureorphanage_p.h
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QWLTEXTUREORPHANAGE_P_H
6#define QWLTEXTUREORPHANAGE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QObject>
20#include <QMutex>
21#include <QLoggingCategory>
22#include <QtWaylandCompositor/qtwaylandcompositorglobal.h>
23
24#include <QtCore/qhash.h>
25
26QT_BEGIN_NAMESPACE
27
28class QOpenGLContext;
29class QOpenGLTexture;
30
31Q_DECLARE_LOGGING_CATEGORY(qLcWTO)
32
33namespace QtWayland {
34
35class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandTextureOrphanage : public QObject
36{
38
39public:
42
44
45 // texture that isn't needed anymore will be "take care of" (killed) appropriately
47
48 // uses QOpenGLContext::currentContext to call deleteTexturesByContext on all shared ctx
49 void deleteTextures();
50
51public Q_SLOTS:
52 // uses sender() to call deleteTexturesByContext
54
55private:
57
58 // tracks all the orphanes that need to be deleted
60
62};
63
64} // namespace QtWayland
65
66QT_END_NAMESPACE
67#endif
Combined button and popup list for selecting options.