Changeset 283297 in webkit
- Timestamp:
- Sep 29, 2021, 9:18:17 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/XR/PlatformXRSystem.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r283295 r283297 1 2021-09-29 Ada Chan <ada.chan@apple.com> 2 3 [WebXR] Hold a foreground assertion for the duration of the immersive session 4 https://bugs.webkit.org/show_bug.cgi?id=230991 5 6 Reviewed by Chris Dumez. 7 8 * UIProcess/XR/PlatformXRSystem.cpp: 9 (WebKit::PlatformXRSystem::initializeTrackingAndRendering): 10 1 11 2021-09-29 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/Source/WebKit/UIProcess/XR/PlatformXRSystem.cpp
r279822 r283297 80 80 return; 81 81 82 xrCoordinator->startSession(m_page, [weakThis = makeWeakPtr(*this)](XRDeviceIdentifier deviceIdentifier) { 83 RunLoop::main().dispatch([weakThis, deviceIdentifier]() mutable { 82 auto immersiveSessionActivity = m_page.process().throttler().foregroundActivity("XR immersive session"_s); 83 84 xrCoordinator->startSession(m_page, [weakThis = makeWeakPtr(*this), immersiveSessionActivity = WTFMove(immersiveSessionActivity)](XRDeviceIdentifier deviceIdentifier) mutable { 85 RunLoop::main().dispatch([weakThis, deviceIdentifier, immersiveSessionActivity = WTFMove(immersiveSessionActivity)]() mutable { 84 86 if (weakThis) 85 87 weakThis->m_page.send(Messages::PlatformXRSystemProxy::SessionDidEnd(deviceIdentifier));
Note:
See TracChangeset
for help on using the changeset viewer.