Changeset 152165 in webkit


Ignore:
Timestamp:
Jun 28, 2013 7:49:24 AM (11 years ago)
Author:
sergio@webkit.org
Message:

[WK2][GTK] 100% CPU usage rendering a page with animations
https://bugs.webkit.org/show_bug.cgi?id=117703

Reviewed by Martin Robinson.

Unconditionally update the value of m_lastFlushTime in
::flushAndRenderLayers. By doing that we avoid a neverending
sequence of layer flushes that happened when m_lastFlushTime==0
and flushPendingLayerChanges() was false. In that situation the
value m_lastFlushTime was never updated so a new flush was always
rescheduled.

  • WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:

(WebKit::LayerTreeHostGtk::flushAndRenderLayers):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r152155 r152165  
     12013-06-28  Sergio Villar Senin  <svillar@igalia.com>
     2
     3        [WK2][GTK] 100% CPU usage rendering a page with animations
     4        https://bugs.webkit.org/show_bug.cgi?id=117703
     5
     6        Reviewed by Martin Robinson.
     7
     8        Unconditionally update the value of m_lastFlushTime in
     9        ::flushAndRenderLayers. By doing that we avoid a neverending
     10        sequence of layer flushes that happened when m_lastFlushTime==0
     11        and flushPendingLayerChanges() was false. In that situation the
     12        value m_lastFlushTime was never updated so a new flush was always
     13        rescheduled.
     14
     15        * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
     16        (WebKit::LayerTreeHostGtk::flushAndRenderLayers):
     17
    1182013-06-28  Andres Gomez  <agomez@igalia.com>
    219
  • trunk/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp

    r149049 r152165  
    361361        return;
    362362
     363    m_lastFlushTime = currentTime();
    363364    if (!flushPendingLayerChanges())
    364365        return;
    365366
    366     m_lastFlushTime = currentTime();
    367367    // Our model is very simple. We always composite and render the tree immediately after updating it.
    368368    compositeLayersToContext();
Note: See TracChangeset for help on using the changeset viewer.