diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-12-08 13:24:17 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-19 14:23:12 +0100 |
commit | 6efca58ab943bbd8c91c8f12ad47484677e2cf60 (patch) | |
tree | d1d5629d17451f36abaca975eed92d9132269e01 /src/quick/scenegraph/qsgcontext.cpp | |
parent | 8460eae44c241d5975b3041eedf6e08c9638fd41 (diff) |
Implement "headless mode" for hidden QQuickCanvases
When all views are hidden, we stop the rendering thread,
kill the OpenGL context and all scene graph content.
The entire scenegraph is recreated based on the QML scene
when a view is shown again.
Change-Id: I734619d9f29263a5cdecbcc9b88c3808d1d64a7f
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgcontext.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgcontext.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp index a81571e5d8..5af7c76b16 100644 --- a/src/quick/scenegraph/qsgcontext.cpp +++ b/src/quick/scenegraph/qsgcontext.cpp @@ -87,9 +87,7 @@ class QSGContextPrivate : public QObjectPrivate { public: QSGContextPrivate() - : rootNode(0) - , renderer(0) - , gl(0) + : gl(0) , distanceFieldCacheManager(0) , flashMode(qmlFlashMode()) , distanceFieldDisabled(qmlDisableDistanceField()) @@ -101,9 +99,6 @@ public: { } - QSGRootNode *rootNode; - QSGRenderer *renderer; - QOpenGLContext *gl; QHash<QSGMaterialType *, QSGMaterialShader *> materials; |