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
qeglfskmsgbmintegration_p.h
Go to the documentation of this file.
1// Copyright (C) 2015 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
2// Copyright (C) 2016 The Qt Company Ltd.
3// Copyright (C) 2016 Pelagicore AG
4// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
5
6#ifndef QEGLFSKMSGBMINTEGRATION_H
7#define QEGLFSKMSGBMINTEGRATION_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <private/qeglfskmsintegration_p.h>
21#include <QtCore/QMap>
22#include <QtCore/QVariant>
23
24QT_BEGIN_NAMESPACE
25
26class QEglFSKmsDevice;
27class QDeviceDiscovery;
28class QFileSystemWatcher;
29
30class Q_EGLFS_EXPORT QEglFSKmsGbmIntegration : public QEglFSKmsIntegration
31{
32public:
33 QEglFSKmsGbmIntegration();
34 ~QEglFSKmsGbmIntegration() override;
35
36 EGLDisplay createDisplay(EGLNativeDisplayType nativeDisplay) override;
37 EGLNativeWindowType createNativeOffscreenWindow(const QSurfaceFormat &format) override;
38 void destroyNativeWindow(EGLNativeWindowType window) override;
39
40 QPlatformCursor *createCursor(QPlatformScreen *screen) const override;
41 void presentBuffer(QPlatformSurface *surface) override;
42 QEglFSWindow *createWindow(QWindow *window) const override;
43
44protected:
45 QKmsDevice *createDevice() override;
46
47private:
48 std::unique_ptr<QDeviceDiscovery> m_deviceDiscovery;
49 std::unique_ptr<QFileSystemWatcher> m_kmsConfigWatcher;
50};
51
52QT_END_NAMESPACE
53
54#endif // QEGLFSKMSGBMINTEGRATION_H
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
void * native_display
void const EGLint * attrib_list
#define EGL_PLATFORM_GBM_KHR