| commit | 003be2cc4531f07cd4755a3626f2c2094ec6f8b4 | [log] [tgz] |
|---|---|---|
| author | Piotr Bialecki <bialpio@chromium.org> | Fri May 14 21:29:36 2021 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri May 14 21:29:36 2021 |
| tree | 96782621ac4c98a7a85e0a0c88011c000fb80f48 | |
| parent | 2209aa76cb3a83bcd8a05b906cdc5a788d62f2df [diff] |
WebXR anchors: fix anchor creation regression Anchor creation tests used `emulatedPosition==false` as a signal to determine whether tracking has been established. The CL to fix getPose() logic (https://crrev.com/c/2803481) subtly changed the behavior and started returning non-emulated poses if asked about relationship of the same space w.r.t. itself (it'd return non-emulated identity pose). This in turn caused the test to attempt to create the anchor when the tracking is not yet established. The test case should use a different signal when deciding if the tracking has been established - for that, querying for a relationship between local and viewer space should be sufficient. Additionally, fix a bug with accidentally constructing a base::nullopt where an optional with default-constructed TransformationMatrix should be returned instead. Change-Id: Id1498f57d8303757edaeeaaf883a97b969589ca2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2897955 Reviewed-by: Brian Sheedy <bsheedy@chromium.org> Reviewed-by: Alexander Cooper <alcooper@chromium.org> Commit-Queue: Piotr Bialecki <bialpio@chromium.org> Cr-Commit-Position: refs/heads/master@{#883136}
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.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.