| 1 |
// Copyright (C) 2015 Pier Luigi Fiorini <[email protected]> |
| 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 QEGLFSKMSGBMWINDOW_H |
| 7 |
#define QEGLFSKMSGBMWINDOW_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/qeglfswindow_p.h" |
| 21 |
|
| 22 |
QT_BEGIN_NAMESPACE |
| 23 |
|
| 24 |
class QEglFSKmsGbmIntegration; |
| 25 |
|
| 26 |
class Q_EGLFS_EXPORT QEglFSKmsGbmWindow : public QEglFSWindow |
| 27 |
{ |
| 28 |
public: |
| 29 |
QEglFSKmsGbmWindow(QWindow *w, const QEglFSKmsGbmIntegration *integration) |
| 30 |
: QEglFSWindow(w), |
| 31 |
m_integration(integration) |
| 32 |
{ } |
| 33 |
|
| 34 |
~QEglFSKmsGbmWindow() { destroy(); } |
| 35 |
|
| 36 |
void resetSurface() override; |
| 37 |
void invalidateSurface() override; |
| 38 |
|
| 39 |
private: |
| 40 |
const QEglFSKmsGbmIntegration *m_integration; |
| 41 |
}; |
| 42 |
|
| 43 |
QT_END_NAMESPACE |
| 44 |
|
| 45 |
#endif // QEGLFSKMSGBMWINDOW_H |