Track the animationRunning flag correctly in QQuickRenderThreadSingleContextWindowManager
authorCharles Yin <charles.yin@nokia.com>
Fri, 10 Feb 2012 05:33:53 +0000 (15:33 +1000)
committerQt by Nokia <qt-info@nokia.com>
Sat, 11 Feb 2012 04:32:48 +0000 (05:32 +0100)
The animationRunning value in QQuickRenderThreadSingleContextWindowManager
should always match the animation driver's running state. When the renderer
starts rendering, should check and update the animationRunning to
the current animation driver's isRunning() value after killing the
animation timer.

Change-Id: I30b55872ae1fc69b8db47ead7f1f2ee86de966c8
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/quick/items/qquickwindowmanager.cpp

index d54be90..c28b77f 100644 (file)
@@ -992,6 +992,7 @@ void QQuickRenderThreadSingleContextWindowManager::startRendering()
     inSync = false;
 
     lockInGui();
+    animationRunning = animationDriver->isRunning();
     start(); // Start the render thread...
     wait();
     unlockInGui();