Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qeglfskmseventreader_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 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 QEGLFSKKMSEVENTREADER_H
5#define QEGLFSKKMSEVENTREADER_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 "private/qeglfsglobal_p.h"
19#include <QObject>
20#include <QThread>
21#include <QMutex>
22#include <QWaitCondition>
23
25
26class QEglFSKmsDevice;
27
29{
35
36 static const int MAX_FLIPS = 32;
39
40 bool event(QEvent *event) override;
41 void updateStatus();
42 void handlePageFlipCompleted(void *key);
43};
44
46{
47public:
49 void run() override;
50 QEglFSKmsEventHost *eventHost() { return &m_ev; }
51
52private:
53 int m_fd;
55};
56
58{
59public:
61
63 void destroy();
64
65 void startWaitFlip(void *key, QMutex *mutex, QWaitCondition *cond);
66
67private:
68 QEglFSKmsDevice *m_device = nullptr;
69 QEglFSKmsEventReaderThread *m_thread = nullptr;
70};
71
73
74#endif // QEGLFSKKMSEVENTREADER_H
IOBluetoothDevice * device
QEglFSKmsEventHost * eventHost()
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtCore
Definition qmutex.h:281
\inmodule QtCore
Definition qobject.h:103
Combined button and popup list for selecting options.
#define Q_EGLFS_EXPORT
GLuint64 key
GLuint64 GLenum GLint fd
struct _cl_event * event
QMutex mutex
[2]
view create()
QEglFSKmsEventHost::PendingFlipWait pendingFlipWaits[MAX_FLIPS]
void * completedFlips[MAX_FLIPS]
void handlePageFlipCompleted(void *key)