Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UI-side compositing] Scrolling is not as smooth as it should be on 1…
…20Hz displays https://bugs.webkit.org/show_bug.cgi?id=255254 <rdar://107837416> Reviewed by Tim Horton and Matt Woodrow. On 120Hz displays, the scrolling thread would get displayDidRefresh() at 120Hz, but frameDuration() was the default 1/60s, causing RemoteLayerTreeEventDispatcher::waitForRenderingUpdateCompletionOrTimeout() to block for up to 8ms (half the frame duration). No-one called ScrollingTree::windowScreenDidChange(), so fix that by calling it from RemoteLayerTreeEventDispatcher. * Source/WebCore/page/scrolling/ScrollingTree.h: * Source/WebKit/UIProcess/RemoteLayerTree/mac/RemoteLayerTreeEventDispatcher.cpp: (WebKit::RemoteLayerTreeEventDispatcher::windowScreenDidChange): Canonical link: https://commits.webkit.org/262801@main
- Loading branch information