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 QEGLFSOFFSCREENWINDOW_H
0005 #define QEGLFSOFFSCREENWINDOW_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 <qpa/qplatformoffscreensurface.h>
0020 
0021 QT_BEGIN_NAMESPACE
0022 
0023 class Q_EGLFS_EXPORT QEglFSOffscreenWindow : public QPlatformOffscreenSurface
0024 {
0025 public:
0026     QEglFSOffscreenWindow(EGLDisplay display, const QSurfaceFormat &format, QOffscreenSurface *offscreenSurface);
0027     ~QEglFSOffscreenWindow();
0028 
0029     QSurfaceFormat format() const override { return m_format; }
0030     bool isValid() const override { return m_surface != EGL_NO_SURFACE; }
0031 
0032 private:
0033     QSurfaceFormat m_format;
0034     EGLDisplay m_display;
0035     EGLSurface m_surface;
0036     EGLNativeWindowType m_window;
0037 };
0038 
0039 QT_END_NAMESPACE
0040 
0041 #endif // QEGLFSOFFSCREENWINDOW_H