From 337402138ca1040ef04a7aab365e50e8688bf6a6 Mon Sep 17 00:00:00 2001 From: Tsuyoshi Horo Date: Thu, 3 Oct 2019 09:55:27 +0000 Subject: [PATCH] Bug 1585227 [wpt PR 19428] - Revert "Update emulated position on each XRFrame", a=testonly Automatic update from web-platform-tests Revert "Update emulated position on each XRFrame" This reverts commit 8be89ae08126913ff4447927ac5a087b8d6babcf. Reason for revert: Build failure: https://ci.chromium.org/p/chromium/builders/ci/Win%20x64%20Builder/79827 [4142/15096] CXX obj/device/vr/vr/openxr_controller.obj FAILED: obj/device/vr/vr/openxr_controller.obj C:\b\s\w\ir\cache\goma\client\gomacc.exe ..\..\third_party\llvm-build\Release+Asserts\bin\clang-cl.e...(too long) ../../device/vr/openxr/openxr_controller.cc(204,19): error: no member named 'emulated_position' in 'device::mojom::XRInputSourceDescription' description_->emulated_position = false; ~~~~~~~~~~~~ ^ 1 error generated. Original change's description: > Update emulated position on each XRFrame > > For both the head poses and input poses, send this value through mojo > from the device process to the renderer process on every frame. > > Bug: 969131 > Change-Id: Ie895deb75bddb6dd883d09828cfcb30f335d3793 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1825478 > Auto-Submit: Jacob DeWitt > Commit-Queue: Will Harris > Reviewed-by: Will Harris > Reviewed-by: Klaus Weidner > Reviewed-by: Alexander Cooper > Cr-Commit-Position: refs/heads/master@{#701389} TBR=dcheng@chromium.org,wfh@chromium.org,klausw@chromium.org,jacde@chromium.org,alcooper@chromium.org Change-Id: I91ec66842b8f0a14bcb85145843fb4d617847066 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 969131 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1833005 Reviewed-by: Tsuyoshi Horo Commit-Queue: Tsuyoshi Horo Cr-Commit-Position: refs/heads/master@{#701401} -- wpt-commits: 1eb937d8403daa35e94bec451643228f85831222 wpt-pr: 19428 --- .../tests/resources/chromium/webxr-test.js | 6 +-- .../getViewerPose_emulatedPosition.https.html | 51 ------------------ .../xrInputSource_emulatedPosition.https.html | 63 ---------------------- 3 files changed, 2 insertions(+), 118 deletions(-) delete mode 100644 testing/web-platform/tests/webxr/getViewerPose_emulatedPosition.https.html delete mode 100644 testing/web-platform/tests/webxr/xrInputSource_emulatedPosition.https.html diff --git a/testing/web-platform/tests/resources/chromium/webxr-test.js b/testing/web-platform/tests/resources/chromium/webxr-test.js index b564ec2f7ebf..eae4d64b446e 100644 --- a/testing/web-platform/tests/resources/chromium/webxr-test.js +++ b/testing/web-platform/tests/resources/chromium/webxr-test.js @@ -268,7 +268,6 @@ class MockRuntime { this.pose_ = { orientation: { x: q[0], y: q[1], z: q[2], w: q[3] }, position: { x: p[0], y: p[1], z: p[2] }, - emulatedPosition: emulatedPosition, angularVelocity: null, linearVelocity: null, angularAcceleration: null, @@ -692,7 +691,6 @@ class MockXRInputSource { this.desc_dirty_ = true; this.pointer_offset_ = new gfx.mojom.Transform(); this.pointer_offset_.matrix = getMatrixFromTransform(transform); - this.emulated_position_ = emulatedPosition; } disconnect() { @@ -814,11 +812,11 @@ class MockXRInputSource { input_state.gamepad = this.gamepad_; - input_state.emulatedPosition = this.emulated_position_; - if (this.desc_dirty_) { let input_desc = new device.mojom.XRInputSourceDescription(); + input_desc.emulatedPosition = this.emulated_position_; + switch (this.target_ray_mode_) { case 'gaze': input_desc.targetRayMode = device.mojom.XRTargetRayMode.GAZING; diff --git a/testing/web-platform/tests/webxr/getViewerPose_emulatedPosition.https.html b/testing/web-platform/tests/webxr/getViewerPose_emulatedPosition.https.html deleted file mode 100644 index 201a9b72208f..000000000000 --- a/testing/web-platform/tests/webxr/getViewerPose_emulatedPosition.https.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - diff --git a/testing/web-platform/tests/webxr/xrInputSource_emulatedPosition.https.html b/testing/web-platform/tests/webxr/xrInputSource_emulatedPosition.https.html deleted file mode 100644 index 7b0fda450874..000000000000 --- a/testing/web-platform/tests/webxr/xrInputSource_emulatedPosition.https.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - -- 2.11.4.GIT