| 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 QEGLFSKMSVSP2INTEGRATION_H |
| 7 |
#define QEGLFSKMSVSP2INTEGRATION_H |
| 8 |
|
| 9 |
#include "qeglfskmsintegration_p.h" |
| 10 |
#include <QtCore/QMap> |
| 11 |
#include <QtCore/QVariant> |
| 12 |
|
| 13 |
QT_BEGIN_NAMESPACE |
| 14 |
|
| 15 |
class QEglFSKmsDevice; |
| 16 |
|
| 17 |
class QEglFSKmsVsp2Integration : public QEglFSKmsIntegration |
| 18 |
{ |
| 19 |
public: |
| 20 |
QEglFSKmsVsp2Integration(); |
| 21 |
|
| 22 |
EGLDisplay createDisplay(EGLNativeDisplayType nativeDisplay) override; |
| 23 |
EGLNativeWindowType createNativeOffscreenWindow(const QSurfaceFormat &format) override; |
| 24 |
void destroyNativeWindow(EGLNativeWindowType window) override; |
| 25 |
|
| 26 |
void presentBuffer(QPlatformSurface *surface) override; |
| 27 |
QEglFSWindow *createWindow(QWindow *window) const override; |
| 28 |
|
| 29 |
protected: |
| 30 |
QKmsDevice *createDevice() override; |
| 31 |
}; |
| 32 |
|
| 33 |
QT_END_NAMESPACE |
| 34 |
|
| 35 |
#endif // QEGLFSKMSVSP2INTEGRATION_H |