-
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.
Restart XR immersive session foreground activity if needed when proce…
…ss is unsuspended https://bugs.webkit.org/show_bug.cgi?id=260226 rdar://107913685 Reviewed by Chris Dumez and Dean Jackson. The "XR immersive session" foreground activity is added when an XR session starts so the web process has the foreground priority to do rendering work. That activity gets invalidated when the process is suspended. So if the process resumes again while an XR session is still in progress, we need to add that foreground activity again. * Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm: (WebKit::WebProcessPool::setProcessesShouldSuspend): * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::restartXRSessionActivityOnProcessResumeIfNeeded): * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/XR/PlatformXRSystem.cpp: (WebKit::PlatformXRSystem::ensureImmersiveSessionActivity): (WebKit::PlatformXRSystem::initializeTrackingAndRendering): * Source/WebKit/UIProcess/XR/PlatformXRSystem.h: Canonical link: https://commits.webkit.org/267097@main
- Loading branch information
Showing
5 changed files
with
26 additions
and
2 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