From: Gunnar Sletta Date: Wed, 7 Aug 2013 08:07:34 +0000 (+0200) Subject: Stop the update timer when no windows are visible X-Git-Tag: upstream/5.2.1~677^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9acb48a64ec6ca133f09e0757ff9f2359f55c983;p=platform%2Fupstream%2Fqtdeclarative.git Stop the update timer when no windows are visible Change-Id: Ib9758a99891829d9bec81996687373d08ecfa055 Reviewed-by: Robin Burchell --- diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp index 1e0d7c5..15b6bdc 100644 --- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp +++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp @@ -963,8 +963,11 @@ void QSGThreadedRenderLoop::releaseResources(QQuickWindow *window, bool inDestru void QSGThreadedRenderLoop::polishAndSync() { - if (!anyoneShowing()) + if (!anyoneShowing()) { + killTimer(m_update_timer); + m_update_timer = 0; return; + } RLDEBUG("GUI: polishAndSync()");