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 PLUGINMAIN_H |
5 | #define PLUGINMAIN_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <private/qsgcontextplugin_p.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class QSGContext; |
23 | class QSGRenderLoop; |
24 | class QSGSoftwareContext; |
25 | |
26 | class QSGSoftwareAdaptation : public QSGContextPlugin |
27 | { |
28 | public: |
29 | QSGSoftwareAdaptation(QObject *parent = nullptr); |
30 | |
31 | QStringList keys() const override; |
32 | QSGContext *create(const QString &key) const override; |
33 | QSGContextFactoryInterface::Flags flags(const QString &key) const override; |
34 | QSGRenderLoop *createWindowManager() override; |
35 | private: |
36 | static QSGSoftwareContext *instance; |
37 | }; |
38 | |
39 | QT_END_NAMESPACE |
40 | |
41 | #endif // PLUGINMAIN_H |
42 |