Changeset 166768 in webkit


Ignore:
Timestamp:
Apr 3, 2014 11:26:54 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Should flush and render layers after the root layer is changed.
https://bugs.webkit.org/show_bug.cgi?id=131108

Patch by Hyowon Kim <hw1008.kim@samsung.com> on 2014-04-03
Reviewed by Gyuyoung Kim.

If there is no update event after root layer is changed, old webview can be shown.
Because the syncTimer is not being triggered by root layer change.
We should flush and render layers by starting syncTimer when the root layer is changed.

  • WebCoreSupport/AcceleratedCompositingContextEfl.cpp:

(WebCore::AcceleratedCompositingContext::setRootGraphicsLayer): Add m_syncTimer.startOneShot(0);

  • WebCoreSupport/AcceleratedCompositingContextEfl.h:

(WebCore::AcceleratedCompositingContext::setRootGraphicsLayer): Move implementation from header to source.

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

Legend:

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

    r166698 r166768  
     12014-04-03  Hyowon Kim  <hw1008.kim@samsung.com>
     2
     3        [EFL] Should flush and render layers after the root layer is changed.
     4        https://bugs.webkit.org/show_bug.cgi?id=131108
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        If there is no update event after root layer is changed, old webview can be shown.
     9        Because the syncTimer is not being triggered by root layer change.
     10        We should flush and render layers by starting syncTimer when the root layer is changed.
     11
     12        * WebCoreSupport/AcceleratedCompositingContextEfl.cpp:
     13        (WebCore::AcceleratedCompositingContext::setRootGraphicsLayer): Add m_syncTimer.startOneShot(0);
     14        * WebCoreSupport/AcceleratedCompositingContextEfl.h:
     15        (WebCore::AcceleratedCompositingContext::setRootGraphicsLayer): Move implementation from header to source.
     16
    1172014-04-02  Ryuan Choi  <ryuan.choi@samsung.com>
    218
  • trunk/Source/WebKit/efl/WebCoreSupport/AcceleratedCompositingContextEfl.cpp

    r166637 r166768  
    182182}
    183183
     184void AcceleratedCompositingContext::setRootGraphicsLayer(GraphicsLayer* rootLayer)
     185{
     186    m_rootLayer = rootLayer;
     187
     188    if (!m_syncTimer.isActive())
     189        m_syncTimer.startOneShot(0);
     190}
     191
    184192} // namespace WebCore
    185193
  • trunk/Source/WebKit/efl/WebCoreSupport/AcceleratedCompositingContextEfl.h

    r166637 r166768  
    4343    ~AcceleratedCompositingContext();
    4444
    45     void setRootGraphicsLayer(GraphicsLayer* rootLayer) { m_rootLayer = rootLayer; }
     45    void setRootGraphicsLayer(GraphicsLayer* rootLayer);
    4646    void resize(const IntSize&);
    4747    void flushAndRenderLayers();
Note: See TracChangeset for help on using the changeset viewer.