blob: c9df68796ee9a4aee6072d15d4eabdb0b4bfc478 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QMINIMALEGLBACKINGSTORE_H
#define QMINIMALEGLBACKINGSTORE_H
#include <qpa/qplatformbackingstore.h>
QT_BEGIN_NAMESPACE
class QOpenGLContext;
class QOpenGLPaintDevice;
class QMinimalEglBackingStore : public QPlatformBackingStore
{
public:
QMinimalEglBackingStore(QWindow *window);
~QMinimalEglBackingStore();
QPaintDevice *paintDevice() override;
void beginPaint(const QRegion &) override;
void endPaint() override;
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override;
void resize(const QSize &size, const QRegion &staticContents) override;
private:
QOpenGLContext *m_context;
QOpenGLPaintDevice *m_device;
};
QT_END_NAMESPACE
#endif // QMINIMALEGLBACKINGSTORE_H
|