Debian Codegraph @

src/plugins/platforms/eglfs/api/qeglfscontext_p.h

raw
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 QEGLFSCONTEXT_H
5 #define QEGLFSCONTEXT_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 "qeglfsglobal_p.h"
19 #include "qeglfscursor_p.h"
20 #include <QtGui/private/qeglplatformcontext_p.h>
21 #include <QtCore/QVariant>
22
23 QT_BEGIN_NAMESPACE
24
25 class Q_EGLFS_EXPORT QEglFSContext : public QEGLPlatformContext
26 {
27 public:
28 using QEGLPlatformContext::QEGLPlatformContext;
29 QEglFSContext() = default; // workaround for INTEGRITY compiler
30 QEglFSContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,
31 EGLConfig *config);
32 EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) override;
33 EGLSurface createTemporaryOffscreenSurface() override;
34 void destroyTemporaryOffscreenSurface(EGLSurface surface) override;
35 void runGLChecks() override;
36 void swapBuffers(QPlatformSurface *surface) override;
37
38 QEglFSCursorData cursorData;
39
40 private:
41 EGLNativeWindowType m_tempWindow = 0;
42 };
43
44 QT_END_NAMESPACE
45
46 #endif // QEGLFSCONTEXT_H