Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b006b42a19efc532b4b7392d644661af5cfe0c8d
https://github.com/WebKit/WebKit/commit/b006b42a19efc532b4b7392d644661af5cfe0c8d
Author: Dan Glastonbury <[email protected]>
Date: 2026-07-18 (Sat, 18 Jul 2026)
Changed paths:
M Source/WebKit/UIProcess/XR/xros/PlatformXRCompositor.h
M Source/WebKit/UIProcess/XR/xros/PlatformXRCompositor.mm
Log Message:
-----------
[WebXR] Clamp minimum depth for PlatformXRCompositor
https://bugs.webkit.org/show_bug.cgi?id=319539
rdar://181951902
Reviewed by Mike Wyrzykowski.
The compositor can place a constraint on the minimum depth value that is
allowable for the page to render with. When breaking this constraint,
CompositorServices crashes with a debug message.
Query the minimum depth and clamp the requested range to the minimum.
Additionally, when a page tries to use reverse-Z for the depth range generate
the projection matrix using the correct convention.
Tested on visionPro with WonderLand engine example.
* Source/WebKit/UIProcess/XR/xros/PlatformXRCompositor.h:
* Source/WebKit/UIProcess/XR/xros/PlatformXRCompositor.mm:
(WebKit::CompositorCoordinator::getPrimaryDeviceInfo):
(WebKit::CompositorCoordinator::render):
Canonical link: https://commits.webkit.org/317502@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications