aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgwindowsrenderloop.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@jollamobile.com>2014-02-10 15:51:16 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-25 17:08:02 +0100
commitaaea23708a46259094a8203f73ee0650c362d85f (patch)
tree2d6dda4f7542fd091bca8008f962bc8fcb6ffc41 /src/quick/scenegraph/qsgwindowsrenderloop.cpp
parentb9f74e7467f31b63bd0ff2ae9d66bcd61a8b8b6f (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 <laszlo.agocs@digia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgwindowsrenderloop.cpp')
-rw-r--r--src/quick/scenegraph/qsgwindowsrenderloop.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgwindowsrenderloop.cpp b/src/quick/scenegraph/qsgwindowsrenderloop.cpp
index 8af0401478..b3def43514 100644
--- a/src/quick/scenegraph/qsgwindowsrenderloop.cpp
+++ b/src/quick/scenegraph/qsgwindowsrenderloop.cpp
@@ -214,6 +214,9 @@ void QSGWindowsRenderLoop::show(QQuickWindow *window)
qFatal("%s", qPrintable(nonTranslatedMsg));
return;
}
+
+ QQuickWindowPrivate::get(window)->fireOpenGLContextCreated(m_gl);
+
QSG_RENDER_TIMING_SAMPLE(time_created);
RLDEBUG(" - making current");
bool current = m_gl->makeCurrent(window);
@@ -269,6 +272,7 @@ void QSGWindowsRenderLoop::hide(QQuickWindow *window)
QQuickWindowPrivate *cd = QQuickWindowPrivate::get(window);
m_gl->makeCurrent(window);
+ cd->fireAboutToStop();
cd->cleanupNodesOnShutdown();
// If this is the last tracked window, check for persistent SG and GL and