Changeset 154711 in webkit


Ignore:
Timestamp:
Aug 27, 2013 3:23:16 PM (11 years ago)
Author:
Luciano Miguel Wolf
Message:

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):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r154699 r154711  
     12013-08-27  Luciano Wolf  <luciano.wolf@openbossa.org>
     2
     3        100% cpu usage for "transition: opacity" animation
     4        https://bugs.webkit.org/show_bug.cgi?id=120012
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        Schedule animation timer after scheduling a layer flush. This way it
     9        won't overwrite animation timer with "0", thus avoiding 100% cpu usage.
     10
     11        * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
     12        (WebKit::CoordinatedLayerTreeHost::scheduleAnimation):
     13
    1142013-08-27  Csaba Osztrogonác  <ossy@webkit.org>
    215
  • trunk/Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp

    r153426 r154711  
    397397        return;
    398398
     399    scheduleLayerFlush();
    399400    m_layerFlushTimer.startOneShot(m_coordinator->nextAnimationServiceTime());
    400     scheduleLayerFlush();
    401401}
    402402#endif
Note: See TracChangeset for help on using the changeset viewer.