Changeset 150629 in webkit


Ignore:
Timestamp:
May 23, 2013 11:26:26 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Need to suspend/resume RootLayerCommit when the application becomes inactive/active
https://bugs.webkit.org/show_bug.cgi?id=115245

Patch by Xiaobo Wang <xiaobwang@blackberry.com> on 2013-05-23
Reviewed by Rob Buis.

PR 330917.
Internally reviewed by Arvid Nilsson.

  1. Suspend/resumeRootLayerCommit when notified app activation state

change.

  1. Schedule root layer commit in resumeRootLayerCommit() to explicitly

start root layer commit timer, so that there's a commit even if
BackingStore got disabled/removed.

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPagePrivate::notifyAppActivationStateChange):
(BlackBerry::WebKit::WebPagePrivate::resumeRootLayerCommit):

Location:
trunk/Source/WebKit/blackberry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebPage.cpp

    r150588 r150629  
    50255025    m_activationState = activationState;
    50265026
     5027#if USE(ACCELERATED_COMPOSITING)
     5028    if (activationState == ActivationActive)
     5029        resumeRootLayerCommit();
     5030    else
     5031        suspendRootLayerCommit();
     5032#endif
     5033
    50275034#if ENABLE(PAGE_VISIBILITY_API)
    50285035    setPageVisibilityState();
     
    56745681    m_suspendRootLayerCommit = false;
    56755682    m_needsCommit = true;
     5683    // PR 330917, explicitly start root layer commit timer, so that there's a commit
     5684    // even if BackingStore got disabled/removed.
     5685    scheduleRootLayerCommit();
    56765686}
    56775687
  • trunk/Source/WebKit/blackberry/ChangeLog

    r150628 r150629  
     12013-05-23  Xiaobo Wang  <xiaobwang@blackberry.com>
     2
     3        [BlackBerry] Need to suspend/resume RootLayerCommit when the application becomes inactive/active
     4        https://bugs.webkit.org/show_bug.cgi?id=115245
     5
     6        Reviewed by Rob Buis.
     7
     8        PR 330917.
     9        Internally reviewed by Arvid Nilsson.
     10
     11        1. Suspend/resumeRootLayerCommit when notified app activation state
     12        change.
     13        2. Schedule root layer commit in resumeRootLayerCommit() to explicitly
     14        start root layer commit timer, so that there's a commit even if
     15        BackingStore got disabled/removed.
     16
     17        * Api/WebPage.cpp:
     18        (BlackBerry::WebKit::WebPagePrivate::notifyAppActivationStateChange):
     19        (BlackBerry::WebKit::WebPagePrivate::resumeRootLayerCommit):
     20
    1212013-05-23  Andy Chen  <andchen@blackberry.com>
    222
Note: See TracChangeset for help on using the changeset viewer.