100% cpu usage for "transition: opacity" animation

https://bugs.webkit.org/show_bug.cgi?id=120012

Reviewed by Noam Rosenthal.

Schedule animation timer after scheduling a layer flush. This way it
won't overwrite animation timer with "0", thus avoiding 100% cpu usage.

* WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
(WebKit::CoordinatedLayerTreeHost::scheduleAnimation):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154711 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 09630020
2013-08-27 Luciano Wolf <luciano.wolf@openbossa.org>
100% cpu usage for "transition: opacity" animation
https://bugs.webkit.org/show_bug.cgi?id=120012
Reviewed by Noam Rosenthal.
Schedule animation timer after scheduling a layer flush. This way it
won't overwrite animation timer with "0", thus avoiding 100% cpu usage.
* WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
(WebKit::CoordinatedLayerTreeHost::scheduleAnimation):
2013-08-27 Csaba Osztrogonác <ossy@webkit.org>
[WK2][Soup] Add WebFrameNetworkingContext::webFrameLoaderClient() after r154490
......
......@@ -396,8 +396,8 @@ void CoordinatedLayerTreeHost::scheduleAnimation()
if (m_layerFlushTimer.isActive())
return;
m_layerFlushTimer.startOneShot(m_coordinator->nextAnimationServiceTime());
scheduleLayerFlush();
m_layerFlushTimer.startOneShot(m_coordinator->nextAnimationServiceTime());
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment