Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Assertion failure in LayerFlushScheduler::resume() when running some …
…layout tests in WebKitTestRunner https://bugs.webkit.org/show_bug.cgi?id=72535 Reviewed by Anders Carlsson. LayerFlushScheduler attempted to use a counter strategy for calls to suspend() and resume(), which allowed us to assert that these calls were balanced. Unfortunately it is hard to guarantee this in WebKit2, where we sometimes try to call suspend() before we've entered compositing mode (hence before we have a LayerTreeHost and a LayerFlushScheduler). When we later call resume(), this call ends up being unbalanced and asserts. For now, remove the assertions and allow unbalanced calls to suspend() and resume(). * platform/graphics/ca/LayerFlushScheduler.cpp: (WebCore::LayerFlushScheduler::suspend): (WebCore::LayerFlushScheduler::resume): * platform/graphics/ca/LayerFlushScheduler.h: * platform/graphics/ca/mac/LayerFlushSchedulerMac.cpp: (WebCore::LayerFlushScheduler::LayerFlushScheduler): (WebCore::LayerFlushScheduler::runLoopObserverCallback): (WebCore::LayerFlushScheduler::schedule): Canonical link: https://commits.webkit.org/89018@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
4 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters