| 1 | // Copyright (C) 2016 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 QMINIMALEGLBACKINGSTORE_H |
| 5 | #define QMINIMALEGLBACKINGSTORE_H |
| 6 | |
| 7 | #include <qpa/qplatformbackingstore.h> |
| 8 | |
| 9 | QT_BEGIN_NAMESPACE |
| 10 | |
| 11 | class QOpenGLContext; |
| 12 | class QOpenGLPaintDevice; |
| 13 | |
| 14 | class QMinimalEglBackingStore : public QPlatformBackingStore |
| 15 | { |
| 16 | public: |
| 17 | QMinimalEglBackingStore(QWindow *window); |
| 18 | ~QMinimalEglBackingStore(); |
| 19 | |
| 20 | QPaintDevice *paintDevice() override; |
| 21 | |
| 22 | void beginPaint(const QRegion &) override; |
| 23 | void endPaint() override; |
| 24 | |
| 25 | void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override; |
| 26 | void resize(const QSize &size, const QRegion &staticContents) override; |
| 27 | |
| 28 | private: |
| 29 | QOpenGLContext *m_context; |
| 30 | QOpenGLPaintDevice *m_device; |
| 31 | }; |
| 32 | |
| 33 | QT_END_NAMESPACE |
| 34 | |
| 35 | #endif // QMINIMALEGLBACKINGSTORE_H |
| 36 |
