Changeset 96185 in webkit


Ignore:
Timestamp:
Sep 27, 2011 9:03:24 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Only initiate the beginFrameAndCommit sequence if a commit has been requested
https://bugs.webkit.org/show_bug.cgi?id=68967

Patch by James Robinson <jamesr@chromium.org> on 2011-09-27
Reviewed by Kenneth Russell.

When updating the scheduler state, we should only initiate a new commit flow if a commit has been requested (as
opposed to only a redraw).

Covered by the unit test CCLayerTreeHostTestSetNeedsRedraw with USE(THREADED_COMPOSITING) set to true.

  • platform/graphics/chromium/cc/CCThreadProxy.cpp:

(WebCore::CCThreadProxy::updateSchedulerStateOnCCThread):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r96180 r96185  
     12011-09-27  James Robinson  <jamesr@chromium.org>
     2
     3        [chromium] Only initiate the beginFrameAndCommit sequence if a commit has been requested
     4        https://bugs.webkit.org/show_bug.cgi?id=68967
     5
     6        Reviewed by Kenneth Russell.
     7
     8        When updating the scheduler state, we should only initiate a new commit flow if a commit has been requested (as
     9        opposed to only a redraw).
     10
     11        Covered by the unit test CCLayerTreeHostTestSetNeedsRedraw with USE(THREADED_COMPOSITING) set to true.
     12
     13        * platform/graphics/chromium/cc/CCThreadProxy.cpp:
     14        (WebCore::CCThreadProxy::updateSchedulerStateOnCCThread):
     15
    1162011-09-27  Kentaro Hara  <haraken@chromium.com>
    217
  • trunk/Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.cpp

    r96173 r96185  
    398398    // commit request into an actual createBeginFrameAndCommitTaskOnCCThread call.
    399399    m_redrawRequestedOnCCThread |= redrawRequested;
    400     if (!m_beginFrameAndCommitPendingOnCCThread) {
     400    if (commitRequested && !m_beginFrameAndCommitPendingOnCCThread) {
    401401        CCMainThread::postTask(createBeginFrameAndCommitTaskOnCCThread());
    402402        return;
Note: See TracChangeset for help on using the changeset viewer.