Changeset 88533 in webkit


Ignore:
Timestamp:
Jun 10, 2011 2:09:45 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-06-10 Grzegorz Czajkowski <g.czajkowski@samsung.com>

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:
Location:
trunk/Source/WebKit/efl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/efl/ChangeLog

    r88532 r88533  
     12011-06-10  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [EFL] Repaint throttling API.
     6        https://bugs.webkit.org/show_bug.cgi?id=56178
     7
     8        The API allows to set the values for repaint throttling.
     9        It should ensure displaying a content with many css/gif animations.
     10
     11        * ewk/ewk_settings.cpp:
     12        (ewk_settings_repaint_throttling_set):
     13        * ewk/ewk_settings.h:
     14
    1152011-06-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    216
  • trunk/Source/WebKit/efl/ewk/ewk_settings.cpp

    r88532 r88533  
    2626#include "DatabaseTracker.h"
    2727#endif
     28#include "FrameView.h"
    2829#include "IconDatabase.h"
    2930#include "Image.h"
     
    374375
    375376/**
     377 * Sets values for repaint throttling.
     378 *
     379 * It allows to slow down page loading and
     380 * should ensure displaying a content with many css/gif animations.
     381 *
     382 * These values can be used as a example for repaints throttling.
     383 * 0,     0,   0,    0    - default WebCore's values, these do not delay any repaints
     384 * 0.025, 0,   2.5,  0.5  - recommended values for dynamic content
     385 * 0.01,  0,   1,    0.2  - minimal level
     386 * 0.025, 1,   5,    0.5  - medium level
     387 * 0.1,   2,   10,   1    - heavy level
     388 *
     389 * @param deferred_repaint_delay a normal delay
     390 * @param initial_deferred_repaint_delay_during_loading negative value would mean that first few repaints happen without a delay
     391 * @param max_deferred_repaint_delay_during_loading the delay grows on each repaint to this maximum value
     392 * @param deferred_repaint_delay_increment_during_loading on each repaint the delay increses by this amount
     393 */
     394void 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)
     395{
     396    WebCore::FrameView::setRepaintThrottlingDeferredRepaintDelay(deferred_repaint_delay);
     397    WebCore::FrameView::setRepaintThrottlingnInitialDeferredRepaintDelayDuringLoading(initial_deferred_repaint_delay_during_loading);
     398    WebCore::FrameView::setRepaintThrottlingMaxDeferredRepaintDelayDuringLoading(max_deferred_repaint_delay_during_loading);
     399    WebCore::FrameView::setRepaintThrottlingDeferredRepaintDelayIncrementDuringLoading(deferred_repaint_delay_increment_during_loading);
     400}
     401
     402/**
    376403 * @internal
    377404 *
  • trunk/Source/WebKit/efl/ewk/ewk_settings.h

    r84771 r88533  
    5757EAPI void             ewk_settings_cache_capacity_set(unsigned capacity);
    5858
     59EAPI 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);
     60
    5961#ifdef __cplusplus
    6062}
Note: See TracChangeset for help on using the changeset viewer.