commit | d4d458f9c719e0246d8c8cfa952aa7e698124fdc | [log] [tgz] |
---|---|---|
author | Jacob DeWitt <jacde@chromium.org> | Tue Mar 19 20:26:34 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Mar 19 20:26:34 2019 |
tree | 8444d2d8d01a24b6b1f76368aba751bb4239adcd | |
parent | 0cc616126030a9102233ec1e0ca5e5f5aa8ea180 [diff] |
Add XRSession.viewerSpace and refactor XRFrame.getPose Also check if XRFrame is an animation frame in XRFrame.getViewerPose Instead of adding methods like GetInputSource() and ReturnTargetRay() to XRSpace, there are 3 new classes derived from XRSpace: XRViewerSpace, XRTargetRaySpace, and XRGripSpace. Instances of those classes can be passed as the first argument to XRFrame.getPose to trigger the spec-required behavior for those special cases. XRSpace has a virtual method called getPose which handles the core logic of XRFrame.getPose. That avoids having a bunch of extra checks in the XRFrame.getPose method itself. Bug: 928466 Change-Id: Ib4eeafe8f88b1d2ea2c2685b0112cbbd27f1b653 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1526788 Commit-Queue: Jacob DeWitt <jacde@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Reviewed-by: Klaus Weidner <klausw@chromium.org> Cr-Commit-Position: refs/heads/master@{#642157}
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 .