commit | b4a24d48072fd430e45f6912aff75a973235ea87 | [log] [tgz] |
---|---|---|
author | Jacob DeWitt <jacde@chromium.org> | Wed Mar 13 22:44:35 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Mar 13 22:44:35 2019 |
tree | 07edf67b298713c12cfc5fda51da6b7b89fd2b3a | |
parent | 365bbbaa231679e6b10f6a48a200edfaefba44b1 [diff] |
Update XRInputSource and implement originOffset for XRReferenceSpace. To match the latest WebXR spec, remove XRInputPose and no longer expose XRFrame.getInputPose to JS. The logic from getInputPose has been moved to the private methods XRFrame.GetGripPose and XRFrame.GetTargetRayPose, which are called from XRFrame.getPose. Also take changes to originOffset into account when quering viewer pose and input (ray and grip) poses for a frame. This is required by the spec and enables teleportation behavior in VR space. The input selection webxr test page has changes that klausw@ made to test this use case for both 3DoF and 6DoF headsets. Bug: 922204, 922166 Change-Id: I608e528151a5a29d51a29f17540a062236e7b1f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1502072 Commit-Queue: Jeremy Roman <jbroman@chromium.org> Reviewed-by: Jeremy Roman <jbroman@chromium.org> Reviewed-by: Klaus Weidner <klausw@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Cr-Commit-Position: refs/heads/master@{#640524}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .