2010-08-13 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
authorkov@webkit.org <kov@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Aug 2010 17:10:38 +0000 (17:10 +0000)
committerkov@webkit.org <kov@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Aug 2010 17:10:38 +0000 (17:10 +0000)
        Reviewed by Kenneth Rohde Christiansen and Martin Robinson.

        [GTK] GTK+ drawing idle starved
        https://bugs.webkit.org/show_bug.cgi?id=43994

        Tune down the priority of the shared timers to guarantee GTK+ has
        an opportunity to redraw.

        * platform/gtk/SharedTimerGtk.cpp:
        (WebCore::setSharedTimerFireTime):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@65438 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/gtk/SharedTimerGtk.cpp

index de35424..c95fb4a 100644 (file)
@@ -1,3 +1,16 @@
+2010-08-13  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
+
+        Reviewed by Kenneth Rohde Christiansen and Martin Robinson.
+
+        [GTK] GTK+ drawing idle starved
+        https://bugs.webkit.org/show_bug.cgi?id=43994
+
+        Tune down the priority of the shared timers to guarantee GTK+ has
+        an opportunity to redraw.
+
+        * platform/gtk/SharedTimerGtk.cpp:
+        (WebCore::setSharedTimerFireTime):
+
 2010-08-16  Leandro Pereira  <leandro@profusion.mobi>
 
         [EFL] Build fix after r65366.
index 092df95..ee4d75b 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <wtf/Assertions.h>
 #include <wtf/CurrentTime.h>
+#include <gdk/gdk.h>
 #include <glib.h>
 
 namespace WebCore {
@@ -63,7 +64,7 @@ void setSharedTimerFireTime(double fireTime)
     }
 
     stopSharedTimer();
-    sharedTimer = g_timeout_add(intervalInMS, timeout_cb, NULL);
+    sharedTimer = g_timeout_add_full(GDK_PRIORITY_REDRAW, intervalInMS, timeout_cb, 0, 0);
 }
 
 void stopSharedTimer()