summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/qeglfsbackingstore.h
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2012-03-23 08:51:15 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-23 22:05:56 +0100
commit4a79b52bde74ed7332d92543b8cf1ac810e19c6e (patch)
treea2706bfcb3ba0d3f3329de5c47cca4d0a259d062 /src/plugins/platforms/eglfs/qeglfsbackingstore.h
parent400e59201bf93dc9519cc4cf58286863330dc4eb (diff)
Make QEglFSBackingStore use QtGui-only APIs.
We now have better replacements for QGLPaintDevice etc. Change-Id: I3ac563f0ac26a563b3c788d16c77e0237d9d96d9 Reviewed-by: Donald Carr <donald.carr@nokia.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com> Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfsbackingstore.h')
-rw-r--r--src/plugins/platforms/eglfs/qeglfsbackingstore.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfsbackingstore.h b/src/plugins/platforms/eglfs/qeglfsbackingstore.h
index 1ae3ecdc61..1eb4d8d79a 100644
--- a/src/plugins/platforms/eglfs/qeglfsbackingstore.h
+++ b/src/plugins/platforms/eglfs/qeglfsbackingstore.h
@@ -42,25 +42,30 @@
#ifndef QEGLWINDOWSURFACE_H
#define QEGLWINDOWSURFACE_H
-#include "qeglfsintegration.h"
-#include "qeglfswindow.h"
-
#include <QtGui/qplatformbackingstore_qpa.h>
QT_BEGIN_NAMESPACE
+class QOpenGLContext;
+class QOpenGLPaintDevice;
+
class QEglFSBackingStore : public QPlatformBackingStore
{
public:
QEglFSBackingStore(QWindow *window);
- ~QEglFSBackingStore() { delete m_paintDevice; }
+ ~QEglFSBackingStore();
+
+ QPaintDevice *paintDevice();
+
+ void beginPaint(const QRegion &);
+ void endPaint();
- QPaintDevice *paintDevice() { return m_paintDevice; }
void flush(QWindow *window, const QRegion &region, const QPoint &offset);
void resize(const QSize &size, const QRegion &staticContents);
private:
- QPaintDevice *m_paintDevice;
+ QOpenGLContext *m_context;
+ QOpenGLPaintDevice *m_device;
};
QT_END_NAMESPACE