| 1 |
// Copyright (C) 2015 Pier Luigi Fiorini <[email protected]> |
| 2 |
// Copyright (C) 2017 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 QEGLFSKMSVSP2DEVICE_H |
| 7 |
#define QEGLFSKMSVSP2DEVICE_H |
| 8 |
|
| 9 |
#include <qeglfskmsdevice_p.h> |
| 10 |
|
| 11 |
#include <gbm.h> |
| 12 |
|
| 13 |
QT_BEGIN_NAMESPACE |
| 14 |
|
| 15 |
class QEglFSKmsScreen; |
| 16 |
|
| 17 |
class QEglFSKmsVsp2Device: public QEglFSKmsDevice |
| 18 |
{ |
| 19 |
public: |
| 20 |
QEglFSKmsVsp2Device(QKmsScreenConfig *screenConfig, const QString &path); |
| 21 |
|
| 22 |
bool open() override; |
| 23 |
void close() override; |
| 24 |
|
| 25 |
void *nativeDisplay() const override; |
| 26 |
gbm_device *gbmDevice() const; |
| 27 |
|
| 28 |
QPlatformScreen *createScreen(const QKmsOutput &output) override; |
| 29 |
QPlatformScreen *createHeadlessScreen() override; |
| 30 |
void registerScreenCloning(QPlatformScreen *screen, |
| 31 |
QPlatformScreen *screenThisScreenClones, |
| 32 |
const QList<QPlatformScreen *> &screensCloningThisScreen) override; |
| 33 |
|
| 34 |
private: |
| 35 |
Q_DISABLE_COPY(QEglFSKmsVsp2Device) |
| 36 |
|
| 37 |
gbm_device *m_gbm_device = nullptr; |
| 38 |
}; |
| 39 |
|
| 40 |
QT_END_NAMESPACE |
| 41 |
|
| 42 |
#endif // QEGLFSKMSVSP2DEVICE_H |