-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support sending displayDidRefresh at DisplayLink update with site iso…
…lation. https://bugs.webkit.org/show_bug.cgi?id=260674 <rdar://problem/114402070> Reviewed by Alex Christensen. We currently always send displayDidRefresh for subframes immediately, instead of waiting for the next DisplayLink update. This keeps a set of remote frames, tracking what the current CommitLayerTreeMessageState is for each of them separately. When the displayDidRefresh call comes from DisplayLink, we iterate the set, sending the message onto the web process for each remote frame that is waiting for one. * Source/WebKit/UIProcess/DrawingAreaProxy.h: (WebKit::DrawingAreaProxy::addRemotePageDrawingAreaProxy): (WebKit::DrawingAreaProxy::removeRemotePageDrawingAreaProxy): * Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.h: (WebKit::RemoteLayerTreeDrawingAreaProxy::nextLayerTreeTransactionID const): (WebKit::RemoteLayerTreeDrawingAreaProxy::lastCommittedLayerTreeTransactionID const): * Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm: (WebKit::RemoteLayerTreeDrawingAreaProxy::addRemotePageDrawingAreaProxy): (WebKit::RemoteLayerTreeDrawingAreaProxy::removeRemotePageDrawingAreaProxy): (WebKit::RemoteLayerTreeDrawingAreaProxy::processStateForConnection): (WebKit::RemoteLayerTreeDrawingAreaProxy::commitLayerTreeNotTriggered): (WebKit::RemoteLayerTreeDrawingAreaProxy::willCommitLayerTree): (WebKit::RemoteLayerTreeDrawingAreaProxy::commitLayerTree): (WebKit::RemoteLayerTreeDrawingAreaProxy::commitLayerTreeTransaction): (WebKit::RemoteLayerTreeDrawingAreaProxy::asyncSetLayerContents): (WebKit::RemoteLayerTreeDrawingAreaProxy::maybePauseDisplayRefreshCallbacks): (WebKit::RemoteLayerTreeDrawingAreaProxy::didRefreshDisplay): (WebKit::RemoteLayerTreeDrawingAreaProxy::waitForDidUpdateActivityState): (WebKit::RemoteLayerTreeDrawingAreaProxy::hideContentUntilPendingUpdate): * Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeDrawingAreaProxyIOS.mm: (-[WKDisplayLinkHandler displayLinkFired:]): (-[WKDisplayLinkHandler timerFired]): * Source/WebKit/UIProcess/RemoteLayerTree/mac/RemoteLayerTreeDrawingAreaProxyMac.h: * Source/WebKit/UIProcess/RemoteLayerTree/mac/RemoteLayerTreeDrawingAreaProxyMac.mm: (WebKit::RemoteLayerTreeDisplayLinkClient::displayLinkFired): (WebKit::RemoteLayerTreeDrawingAreaProxyMac::didRefreshDisplay): * Source/WebKit/UIProcess/RemotePageDrawingAreaProxy.cpp: (WebKit::RemotePageDrawingAreaProxy::RemotePageDrawingAreaProxy): (WebKit::RemotePageDrawingAreaProxy::~RemotePageDrawingAreaProxy): * Source/WebKit/UIProcess/RemotePageDrawingAreaProxy.h: (WebKit::RemotePageDrawingAreaProxy::process): Canonical link: https://commits.webkit.org/267270@main
- Loading branch information
1 parent
f93b5aa
commit f754a3d
Showing
6 changed files
with
156 additions
and
54 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
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
Oops, something went wrong.