Changeset 205484 in webkit


Ignore:
Timestamp:
Sep 6, 2016 9:26:05 AM (8 years ago)
Author:
Carlos Garcia Campos
Message:

[Threaded Compositor] Update timer should have lower priority than tasks scheduled in compositing thread
https://bugs.webkit.org/show_bug.cgi?id=161625

Reviewed by Sergio Villar Senin.

This way, if a resize is scheduled, for example, and there are pending updates, the resize will happen first,
and then the updates will happen at the right size.

  • Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp:

(WebKit::CompositingRunLoop::CompositingRunLoop): Use G_PRIORITY_HIGH_IDLE as update timer priority. The actual
priority doesn't really matter as long as it's lower than G_PRIORITY_DEFAULT, because there are only two
possible sources in the compositing run loop, one for the tasks scheduled, and another one for the update timer.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r205475 r205484  
     12016-09-06  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [Threaded Compositor] Update timer should have lower priority than tasks scheduled in compositing thread
     4        https://bugs.webkit.org/show_bug.cgi?id=161625
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        This way, if a resize is scheduled, for example, and there are pending updates, the resize will happen first,
     9        and then the updates will happen at the right size.
     10
     11        * Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp:
     12        (WebKit::CompositingRunLoop::CompositingRunLoop): Use G_PRIORITY_HIGH_IDLE as update timer priority. The actual
     13        priority doesn't really matter as long as it's lower than G_PRIORITY_DEFAULT, because there are only two
     14        possible sources in the compositing run loop, one for the tasks scheduled, and another one for the update timer.
     15
    1162016-09-06  Emanuele Aina  <emanuele.aina@collabora.com>
    217
  • trunk/Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp

    r203721 r205484  
    3333#include <wtf/NeverDestroyed.h>
    3434#include <wtf/WorkQueue.h>
     35
     36#if USE(GLIB_EVENT_LOOP)
     37#include <glib.h>
     38#endif
    3539
    3640namespace WebKit {
     
    109113    , m_updateFunction(WTFMove(updateFunction))
    110114{
     115#if USE(GLIB_EVENT_LOOP)
     116    m_updateTimer.setPriority(G_PRIORITY_HIGH_IDLE);
     117#endif
    111118}
    112119
Note: See TracChangeset for help on using the changeset viewer.