Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 09:09:39

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QEGLFSCONTEXT_H
0005 #define QEGLFSCONTEXT_H
0006 
0007 //
0008 //  W A R N I N G
0009 //  -------------
0010 //
0011 // This file is not part of the Qt API.  It exists purely as an
0012 // implementation detail.  This header file may change from version to
0013 // version without notice, or even be removed.
0014 //
0015 // We mean it.
0016 //
0017 
0018 #include "qeglfsglobal_p.h"
0019 #include "qeglfscursor_p.h"
0020 #include <QtGui/private/qeglplatformcontext_p.h>
0021 #include <QtCore/QVariant>
0022 
0023 QT_BEGIN_NAMESPACE
0024 
0025 class Q_EGLFS_EXPORT QEglFSContext : public QEGLPlatformContext
0026 {
0027 public:
0028     using QEGLPlatformContext::QEGLPlatformContext;
0029     QEglFSContext() = default; // workaround for INTEGRITY compiler
0030     QEglFSContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display,
0031                   EGLConfig *config);
0032     EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) override;
0033     EGLSurface createTemporaryOffscreenSurface() override;
0034     void destroyTemporaryOffscreenSurface(EGLSurface surface) override;
0035     void runGLChecks() override;
0036     void swapBuffers(QPlatformSurface *surface) override;
0037 
0038     QEglFSCursorData cursorData;
0039 
0040 private:
0041     EGLNativeWindowType m_tempWindow = 0;
0042 };
0043 
0044 QT_END_NAMESPACE
0045 
0046 #endif // QEGLFSCONTEXT_H