summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/winrt/qwinrtbackingstore.h
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@digia.com>2014-08-05 23:21:54 +0300
committerAndrew Knight <andrew.knight@digia.com>2014-08-07 08:47:41 +0200
commitc7abf81786f4a0c6940fd606ea32621be7f32a56 (patch)
treecb57fa4da3db0d6f691ad5bd4f310b35b010464f /src/plugins/platforms/winrt/qwinrtbackingstore.h
parent1a9701fe81c39450822c0d4b51c11444380a2fe4 (diff)
winrt: Refactor backing store
Thanks to new features in ANGLE, the backing store implementation complexity can be greatly reduced. By using ES3 framebuffer blit, no shader code is required, and the shader loading code and blit shader can be removed. Change-Id: Iab3d915e279ad6468a75ef6257794f12acd8cb65 Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Diffstat (limited to 'src/plugins/platforms/winrt/qwinrtbackingstore.h')
-rw-r--r--src/plugins/platforms/winrt/qwinrtbackingstore.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/plugins/platforms/winrt/qwinrtbackingstore.h b/src/plugins/platforms/winrt/qwinrtbackingstore.h
index f00fa85a26..40728559f7 100644
--- a/src/plugins/platforms/winrt/qwinrtbackingstore.h
+++ b/src/plugins/platforms/winrt/qwinrtbackingstore.h
@@ -48,8 +48,8 @@
QT_BEGIN_NAMESPACE
class QWinRTScreen;
-class QOpenGLContext;
+class QWinRTBackingStorePrivate;
class QWinRTBackingStore : public QPlatformBackingStore
{
public:
@@ -60,19 +60,13 @@ public:
void endPaint();
void flush(QWindow *window, const QRegion &region, const QPoint &offset);
void resize(const QSize &size, const QRegion &staticContents);
- QImage toImage() const Q_DECL_OVERRIDE { return m_paintDevice; }
+ QImage toImage() const Q_DECL_OVERRIDE;
private:
bool initialize();
- bool m_initialized;
- QSize m_size;
- QScopedPointer<QOpenGLContext> m_context;
- quint32 m_shaderProgram;
- quint32 m_fbo;
- quint32 m_rbo;
- quint32 m_texture;
- QWinRTScreen *m_screen;
- QImage m_paintDevice;
+
+ QScopedPointer<QWinRTBackingStorePrivate> d_ptr;
+ Q_DECLARE_PRIVATE(QWinRTBackingStore)
};
QT_END_NAMESPACE