Title: [88533] trunk/Source/WebKit/efl
Revision
88533
Author
[email protected]
Date
2011-06-10 02:09:45 -0700 (Fri, 10 Jun 2011)

Log Message

2011-06-10  Grzegorz Czajkowski  <[email protected]>

        Reviewed by Kenneth Rohde Christiansen.

        [EFL] Repaint throttling API.
        https://bugs.webkit.org/show_bug.cgi?id=56178

        The API allows to set the values for repaint throttling.
        It should ensure displaying a content with many css/gif animations.

        * ewk/ewk_settings.cpp:
        (ewk_settings_repaint_throttling_set):
        * ewk/ewk_settings.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit/efl/ChangeLog (88532 => 88533)


--- trunk/Source/WebKit/efl/ChangeLog	2011-06-10 08:56:48 UTC (rev 88532)
+++ trunk/Source/WebKit/efl/ChangeLog	2011-06-10 09:09:45 UTC (rev 88533)
@@ -1,3 +1,17 @@
+2011-06-10  Grzegorz Czajkowski  <[email protected]>
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        [EFL] Repaint throttling API.
+        https://bugs.webkit.org/show_bug.cgi?id=56178
+
+        The API allows to set the values for repaint throttling.
+        It should ensure displaying a content with many css/gif animations.
+
+        * ewk/ewk_settings.cpp:
+        (ewk_settings_repaint_throttling_set):
+        * ewk/ewk_settings.h:
+
 2011-06-10  Gyuyoung Kim  <[email protected]>
 
         Reviewed by Kent Tamura.

Modified: trunk/Source/WebKit/efl/ewk/ewk_settings.cpp (88532 => 88533)


--- trunk/Source/WebKit/efl/ewk/ewk_settings.cpp	2011-06-10 08:56:48 UTC (rev 88532)
+++ trunk/Source/WebKit/efl/ewk/ewk_settings.cpp	2011-06-10 09:09:45 UTC (rev 88533)
@@ -25,6 +25,7 @@
 #if ENABLE(DATABASE)
 #include "DatabaseTracker.h"
 #endif
+#include "FrameView.h"
 #include "IconDatabase.h"
 #include "Image.h"
 #include "IntSize.h"
@@ -373,6 +374,32 @@
 }
 
 /**
+ * Sets values for repaint throttling.
+ *
+ * It allows to slow down page loading and
+ * should ensure displaying a content with many css/gif animations.
+ *
+ * These values can be used as a example for repaints throttling.
+ * 0,     0,   0,    0    - default WebCore's values, these do not delay any repaints
+ * 0.025, 0,   2.5,  0.5  - recommended values for dynamic content
+ * 0.01,  0,   1,    0.2  - minimal level
+ * 0.025, 1,   5,    0.5  - medium level
+ * 0.1,   2,   10,   1    - heavy level
+ *
+ * @param deferred_repaint_delay a normal delay
+ * @param initial_deferred_repaint_delay_during_loading negative value would mean that first few repaints happen without a delay
+ * @param max_deferred_repaint_delay_during_loading the delay grows on each repaint to this maximum value
+ * @param deferred_repaint_delay_increment_during_loading on each repaint the delay increses by this amount
+ */
+void ewk_settings_repaint_throttling_set(double deferred_repaint_delay, double initial_deferred_repaint_delay_during_loading, double max_deferred_repaint_delay_during_loading, double deferred_repaint_delay_increment_during_loading)
+{
+    WebCore::FrameView::setRepaintThrottlingDeferredRepaintDelay(deferred_repaint_delay);
+    WebCore::FrameView::setRepaintThrottlingnInitialDeferredRepaintDelayDuringLoading(initial_deferred_repaint_delay_during_loading);
+    WebCore::FrameView::setRepaintThrottlingMaxDeferredRepaintDelayDuringLoading(max_deferred_repaint_delay_during_loading);
+    WebCore::FrameView::setRepaintThrottlingDeferredRepaintDelayIncrementDuringLoading(deferred_repaint_delay_increment_during_loading);
+}
+
+/**
  * @internal
  *
  * Gets the default user agent string.

Modified: trunk/Source/WebKit/efl/ewk/ewk_settings.h (88532 => 88533)


--- trunk/Source/WebKit/efl/ewk/ewk_settings.h	2011-06-10 08:56:48 UTC (rev 88532)
+++ trunk/Source/WebKit/efl/ewk/ewk_settings.h	2011-06-10 09:09:45 UTC (rev 88533)
@@ -56,6 +56,8 @@
 EAPI void             ewk_settings_cache_enable_set(Eina_Bool set);
 EAPI void             ewk_settings_cache_capacity_set(unsigned capacity);
 
+EAPI void             ewk_settings_repaint_throttling_set(double deferred_repaint_delay, double initial_deferred_repaint_delay_during_loading, double max_deferred_repaint_delay_during_loading, double deferred_repaint_delay_increment_during_loading);
+
 #ifdef __cplusplus
 }
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to