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
qeglfskmsintegration_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// Qt-Security score:significant reason:default
6
7#ifndef QEGLFSKMSINTEGRATION_H
8#define QEGLFSKMSINTEGRATION_H
9
10//
11// W A R N I N G
12// -------------
13//
14// This file is not part of the Qt API. It exists purely as an
15// implementation detail. This header file may change from version to
16// version without notice, or even be removed.
17//
18// We mean it.
19//
20
21#include "private/qeglfsdeviceintegration_p.h"
22#include <QtCore/QMap>
23#include <QtCore/QVariant>
24#include <QtCore/QLoggingCategory>
25
27
28class QKmsDevice;
30
31QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY(qLcEglfsKmsDebug, Q_EGLFS_EXPORT)
32
33class Q_EGLFS_EXPORT QEglFSKmsIntegration : public QEglFSDeviceIntegration
34{
35public:
36 QEglFSKmsIntegration();
37 ~QEglFSKmsIntegration();
38
39 void platformInit() override;
40 void platformDestroy() override;
41 EGLNativeDisplayType platformDisplay() const override;
42 bool usesDefaultScreen() override;
43 void screenInit() override;
44 QSurfaceFormat surfaceFormatFor(const QSurfaceFormat &inputFormat) const override;
45 bool hasCapability(QPlatformIntegration::Capability cap) const override;
46 void waitForVSync(QPlatformSurface *surface) const override;
47 bool supportsPBuffers() const override;
48 void *nativeResourceForIntegration(const QByteArray &name) override;
49 void *nativeResourceForScreen(const QByteArray &resource, QScreen *screen) override;
50
51 QKmsDevice *device() const;
52 QKmsScreenConfig *screenConfig() const;
53
54protected:
55 virtual QKmsDevice *createDevice() = 0;
56 virtual QKmsScreenConfig *createScreenConfig();
57
58 QKmsDevice *m_device;
59 QKmsScreenConfig *m_screenConfig = nullptr;
60};
61
62QT_END_NAMESPACE
63
64#endif
QEglFSKmsEventHost * eventHost()
RegisterWaitFlipEvent(void *key, QMutex *mutex, QWaitCondition *cond)
static const QEvent::Type TYPE
Combined button and popup list for selecting options.
static QT_BEGIN_NAMESPACE void pageFlipHandler(int fd, unsigned int sequence, unsigned int tv_sec, unsigned int tv_usec, void *user_data)
QEglFSKmsEventHost::PendingFlipWait pendingFlipWaits[MAX_FLIPS]
bool event(QEvent *event) override
This virtual function receives events to an object and should return true if the event e was recogniz...
void * completedFlips[MAX_FLIPS]
void handlePageFlipCompleted(void *key)