Closed Bug 1598491 Opened 5 months ago Closed 4 months ago

Implement VR process function to scan for XR device runtime installations

Categories

(Core :: WebVR, task)

task
Not set

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: kip, Assigned: kip)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In order to support WebXR's navigator.xr.IsSessionSupported call without displaying any permission dialogue, it is necessary to have a safe way to detect the capability of running a VR or AR session without activating XR runtimes or powering on hardware.

API's such as OpenVR make no guarantee that hardware and software won't be left activated after enumerating devices, so each backend in gfx/vr/service must allow for more granular detection of capabilities.

This patch implements a modified enumeration function that exits early after reporting the presence of XR runtime software.

This is a dependency of the WebXR implementation.

In order to support WebXR's navigator.xr.IsSessionSupported call without
displaying any permission dialogue, it is necessary to have a safe way to
detect the capability of running a VR or AR session without activating XR
runtimes or powering on hardware.

API's such as OpenVR make no guarantee that hardware and software won't be
left activated after enumerating devices, so each backend in gfx/vr/service
must allow for more granular detection of capabilities.

By passing true to bDetectRuntimesOnly, the initialization exits early
after reporting the presence of XR runtime software. The Initialize method
will only enumerate hardware and possibly return true when
aDetectRuntimesOnly is false.

Pushed by kgilbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1e4ac843ccbb
Implement VR process function to scan for XR device runtime installations r=daoshengmu
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.