Bug 1727218 [wpt PR 30142] - Rename 'pose' to 'mojo_from_viewer' in mojo interfaces, a=testonly
authorPatrick To <patrto@microsoft.com>
Wed, 01 Sep 2021 14:05:30 +0000
changeset 590682 c5a2072ad909112100d3c5496948046c57530ad0
parent 590681 229a28faa9e36e5d3767bcae0a498350e3f7deba
child 590683 24a00fbe5247225857996fe4312c0c9ae9ccd1e9
push id38757
push usermalexandru@mozilla.com
push dateFri, 03 Sep 2021 03:51:58 +0000
treeherdermozilla-central@3634785345fe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1727218, 30142, 998146, 3077503, 914700
milestone93.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1727218 [wpt PR 30142] - Rename 'pose' to 'mojo_from_viewer' in mojo interfaces, a=testonly Automatic update from web-platform-tests Rename 'pose' to 'mojo_from_viewer' in mojo interfaces With the addition of the XRView array in XRFrameData and XRRenderInfo, 'pose' is ambiguous and doesn't describe what the transforms are. 'mojo_from_viewer' is consistent with the rest of the convention. Bug: 998146 Change-Id: I02aade55429814a00401a6985c9b49d4b2da9252 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3077503 Commit-Queue: Patrick To <patrto@microsoft.com> Reviewed-by: Sam McNally <sammc@chromium.org> Reviewed-by: Alexander Cooper <alcooper@chromium.org> Cr-Commit-Position: refs/heads/main@{#914700} -- wpt-commits: cab516d04370b7198990c9ec945554e5aad8cdfd wpt-pr: 30142
testing/web-platform/tests/resources/chromium/webxr-test.js
--- a/testing/web-platform/tests/resources/chromium/webxr-test.js
+++ b/testing/web-platform/tests/resources/chromium/webxr-test.js
@@ -884,17 +884,17 @@ class MockRuntime {
         }
 
         let views = this.displayInfo_.views;
         for (let i = 0; i < views.length; i++) {
           views[i].mojoFromView = this._getMojoFromViewerWithOffset(this.viewOffsets_[i]);
         }
 
         const frameData = {
-          pose: this.pose_,
+          mojoFromViewer: this.pose_,
           views: views,
           mojoSpaceReset: mojo_space_reset,
           inputState: input_state,
           timeDelta: {
             // window.performance.now() is in milliseconds, so convert to microseconds.
             microseconds: BigInt(Math.floor(window.performance.now() * 1000)),
           },
           frameId: this.next_frame_id_,