Changeset 92190 in webkit


Ignore:
Timestamp:
Aug 2, 2011 8:18:31 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Remove overlapping recursive layout function
https://bugs.webkit.org/show_bug.cgi?id=63241

First, _ewk_view_layout_if_needed_recursive is called twice in _ewk_view_smart_calculate
and _ewk_view_tiled_updates_process_pre,so it is no problem removing one of them.
Second, In tiled backingstore configuration, _ewk_view_layout_if_needed_recursive called
in _ewk_view_smart_calculate will result in generating repaints for dirty areas
located outside of viewport since m_paintEntireContents is set.
But, the areas will not be actually painted. Thus, the layout is unnecessary except
when there is something to paint inside of viewport, which will consume CPU unnecessarily.
So,the layout func was removed from _ewk_view_smart_calculate
and added to _ewk_view_single_smart_repaints_process for single backingstore.

Patch by Eunsol Park <eunsol47.park@samsung.com> on 2011-08-02
Reviewed by Antonio Gomes.

  • ewk/ewk_view.cpp:

(_ewk_view_smart_calculate):

  • ewk/ewk_view_single.c:

(_ewk_view_single_smart_repaints_process):

Location:
trunk/Source/WebKit/efl
Files:
3 edited

Legend:

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

    r92189 r92190  
     12011-08-02  Eunsol Park  <eunsol47.park@samsung.com>
     2
     3        [EFL] Remove overlapping recursive layout function
     4        https://bugs.webkit.org/show_bug.cgi?id=63241
     5
     6        First, _ewk_view_layout_if_needed_recursive is called twice in _ewk_view_smart_calculate
     7        and _ewk_view_tiled_updates_process_pre,so it is no problem removing one of them.
     8        Second, In tiled backingstore configuration, _ewk_view_layout_if_needed_recursive called
     9        in _ewk_view_smart_calculate will result in generating repaints for dirty areas
     10        located outside of viewport since m_paintEntireContents is set.
     11        But, the areas will not be actually painted. Thus, the layout is unnecessary except
     12        when there is something to paint inside of viewport, which will consume CPU unnecessarily.
     13        So,the layout func was removed from _ewk_view_smart_calculate
     14        and added to _ewk_view_single_smart_repaints_process for single backingstore.
     15
     16        Reviewed by Antonio Gomes.
     17
     18        * ewk/ewk_view.cpp:
     19        (_ewk_view_smart_calculate):
     20        * ewk/ewk_view_single.c:
     21        (_ewk_view_single_smart_repaints_process):
     22
    1232011-08-02  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    224
  • trunk/Source/WebKit/efl/ewk/ewk_view.cpp

    r92039 r92190  
    854854    sd->changed.position = EINA_FALSE;
    855855
    856     ewk_view_layout_if_needed_recursive(sd->_priv);
    857 
    858856    if (!sd->api->scrolls_process(sd))
    859857        ERR("failed to process scrolls.");
  • trunk/Source/WebKit/efl/ewk/ewk_view_single.c

    r91981 r92190  
    438438    }
    439439
     440    ewk_view_layout_if_needed_recursive(sd->_priv);
     441
    440442    int sx, sy;
    441443    ewk_frame_scroll_pos_get(sd->main_frame, &sx, &sy);
Note: See TracChangeset for help on using the changeset viewer.