diff options
author | Gunnar Sletta <[email protected]> | 2014-02-10 15:51:16 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2014-02-25 17:08:02 +0100 |
commit | aaea23708a46259094a8203f73ee0650c362d85f (patch) | |
tree | 2d6dda4f7542fd091bca8008f962bc8fcb6ffc41 /src/quick/scenegraph/qsgthreadedrenderloop.cpp | |
parent | b9f74e7467f31b63bd0ff2ae9d66bcd61a8b8b6f (diff) |
Introduced a few more signals to QQuickWindow.
Also marked the new afterAnimation() signal as \since 5.3 and
introduced proper revisioning on the new signals.
[Changelog][QtQuick] Added QQuickWindow::afterSynchronizing(),
openglContextCreated(), sceneGraphAboutToStop(). Useful for
deeper integration with the rendering.
Change-Id: I5532b310506c2432325595e55ef9307b8934abee
Reviewed-by: Laszlo Agocs <[email protected]>
Diffstat (limited to 'src/quick/scenegraph/qsgthreadedrenderloop.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgthreadedrenderloop.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp index 7b5f161174..5bc7be1d97 100644 --- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp +++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp @@ -378,6 +378,7 @@ bool QSGRenderThread::event(QEvent *e) mutex.lock(); if (window) { + QQuickWindowPrivate::get(window)->fireAboutToStop(); QSG_RT_DEBUG(" - removed window..."); window = 0; } @@ -928,6 +929,8 @@ void QSGThreadedRenderLoop::handleExposure(Window *w) return; } + QQuickWindowPrivate::get(w->window)->fireOpenGLContextCreated(w->thread->gl); + w->thread->gl->moveToThread(w->thread); QSG_GUI_DEBUG(w->window, " - OpenGL context created..."); } |