Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Many CVDisplayLink threads created and destroyed while watching a You…
…Tube video https://bugs.webkit.org/show_bug.cgi?id=181396 Reviewed by Simon Fraser. When watching some YouTube videos (or any video with default controls), event handlers for the "timeupdate" event which use rAF will cause the underlying platform objects to be destroyed in between "timeupdate" events being fired, since they occur every 250ms, and rAF objects are destroyed every 166ms (or 10/60hz). Update this constant to destroy the underlying objects every 333ms (or 20/60hz) so that this common pattern doesn't lead to excessive rAF platform object turnover. * platform/Logging.h: * platform/graphics/DisplayRefreshMonitor.h: (WebCore::DisplayRefreshMonitor::shouldBeTerminated const): * platform/graphics/DisplayRefreshMonitor.cpp: (WebCore::DisplayRefreshMonitor::displayDidRefresh): * platform/graphics/DisplayRefreshMonitorManager.cpp: (WebCore::DisplayRefreshMonitorManager::createMonitorForClient): (WebCore::DisplayRefreshMonitorManager::displayDidRefresh): Canonical link: https://commits.webkit.org/197313@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
5 changed files
with
29 additions
and
1 deletion.
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
@@ -78,6 +78,7 @@ namespace WebCore { | ||
M(PopupBlocking) \ | ||
M(Progress) \ | ||
M(RemoteInspector) \ | ||
M(RequestAnimationFrame) \ | ||
M(ResourceLoading) \ | ||
M(ResourceLoadObserver) \ | ||
M(ResourceLoadStatistics) \ | ||
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