aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/textureinthread/threadrenderer.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@digia.com>2013-03-07 10:20:19 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-23 17:02:09 +0200
commit21aa22ba3fe2f6424742ba0a8fbf39937b81ad13 (patch)
tree5d24cf8b5b971286036f1e7f24e2f078dc77d79c /examples/quick/scenegraph/textureinthread/threadrenderer.h
parenta028d463508ed0612f7fd1d2b1365c5c091dc1b4 (diff)
Create BG context and fake surface on GUI thread
This makes the example more messy and also makes it very hard to avoid the initial black frame, but it is not compliant with the limitations we experience on Windows. Task-number: QTBUG-30077 Change-Id: If5a6da16f8fc1269cd20d2aa1190588025203d4f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'examples/quick/scenegraph/textureinthread/threadrenderer.h')
-rw-r--r--examples/quick/scenegraph/textureinthread/threadrenderer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/quick/scenegraph/textureinthread/threadrenderer.h b/examples/quick/scenegraph/textureinthread/threadrenderer.h
index f12e6404e5..8c68e27d92 100644
--- a/examples/quick/scenegraph/textureinthread/threadrenderer.h
+++ b/examples/quick/scenegraph/textureinthread/threadrenderer.h
@@ -52,9 +52,15 @@ class ThreadRenderer : public QQuickItem
public:
ThreadRenderer();
+ static QList<QThread *> threads;
+
+public slots:
+ void updatePolish();
+
protected:
QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *);
+
private:
RenderThread *m_renderThread;
};