summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/qeglfsbackingstore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfsbackingstore.h')
-rw-r--r--src/plugins/platforms/eglfs/qeglfsbackingstore.h35
1 files changed, 2 insertions, 33 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfsbackingstore.h b/src/plugins/platforms/eglfs/qeglfsbackingstore.h
index 39bdab1563..535428aac1 100644
--- a/src/plugins/platforms/eglfs/qeglfsbackingstore.h
+++ b/src/plugins/platforms/eglfs/qeglfsbackingstore.h
@@ -46,41 +46,16 @@
#include <QImage>
#include <QRegion>
-#include <QTimer>
QT_BEGIN_NAMESPACE
-class QOpenGLContext;
class QOpenGLPaintDevice;
-class QOpenGLShaderProgram;
class QEglFSWindow;
-class QEglFSCompositor : public QObject
-{
- Q_OBJECT
-
-public:
- QEglFSCompositor();
-
- void schedule(QEglFSWindow *rootWindow);
-
- static QEglFSCompositor *instance();
-
-private slots:
- void renderAll();
-
-private:
- void render(QEglFSWindow *window, QEglFSWindow *rootWindow);
-
- QEglFSWindow *m_rootWindow;
- QTimer m_updateTimer;
-};
-
class QEglFSBackingStore : public QPlatformBackingStore
{
public:
QEglFSBackingStore(QWindow *window);
- ~QEglFSBackingStore();
QPaintDevice *paintDevice();
@@ -89,21 +64,15 @@ public:
void flush(QWindow *window, const QRegion &region, const QPoint &offset);
void resize(const QSize &size, const QRegion &staticContents);
+ uint texture() const { return m_texture; }
+
private:
- void makeCurrent();
- static QOpenGLContext *makeRootCurrent(QEglFSWindow *rootWin);
void updateTexture();
QEglFSWindow *m_window;
- QOpenGLContext *m_context;
QImage m_image;
uint m_texture;
QRegion m_dirty;
- QOpenGLShaderProgram *m_program;
- int m_vertexCoordEntry;
- int m_textureCoordEntry;
-
- friend class QEglFSCompositor;
};
QT_END_NAMESPACE