Bug 1584502 [wpt PR 19365] - Convert XRPresentationClient to new Mojo types, a=testonly
authorMiyoung Shin <myid.shin@igalia.com>
Mon, 07 Oct 2019 22:04:57 +0000
changeset 497543 19f500d63b4bf83263b591d44aeaa97fae48997c
parent 497542 c4418df2ebb61eb531963e353fa2c95b1ca43793
child 497544 ebe094b29bc2f382f375995c0d9a67e5f26b16ba
push id36692
push userdvarga@mozilla.com
push dateTue, 15 Oct 2019 10:58:25 +0000
treeherdermozilla-central@dcedbb1d3fd9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1584502, 19365, 955171, 978694, 1828724, 702283
milestone71.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 1584502 [wpt PR 19365] - Convert XRPresentationClient to new Mojo types, a=testonly Automatic update from web-platform-tests Convert XRPresentationClient to new Mojo types This CL converts XRPresentationClientPtr in chrome, device and blink to the new Mojo type, and uses pending_receiver<XRPresentationClient> in vr_service.mojom. Bug: 955171, 978694 Change-Id: I2ea508b31be493653edd2301758855b8c63efc79 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1828724 Reviewed-by: Ken Rockot <rockot@google.com> Reviewed-by: Sam McNally <sammc@chromium.org> Reviewed-by: Piotr Bialecki <bialpio@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Reviewed-by: Klaus Weidner <klausw@chromium.org> Commit-Queue: Miyoung Shin <myid.shin@igalia.com> Cr-Commit-Position: refs/heads/master@{#702283} -- wpt-commits: 7e1e59ff2ad535e088f0d126c3a01fd45b07e5d9 wpt-pr: 19365
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
@@ -569,17 +569,17 @@ class MockRuntime {
       options.transportMethod =
           device.mojom.XRPresentationTransportMethod.SUBMIT_AS_MAILBOX_HOLDER;
       options.waitForTransferNotification = true;
       options.waitForRenderNotification = true;
 
       let submit_frame_sink;
       if (result.supportsSession) {
         submit_frame_sink = {
-          clientRequest: this.presentation_provider_.getClientRequest(),
+          clientReceiver: this.presentation_provider_.getClientReceiver(),
           provider: this.presentation_provider_.bindProvider(sessionOptions),
           transportOptions: options
         };
 
         let dataProviderPtr = new device.mojom.XRFrameDataProviderPtr();
         let dataProviderRequest = mojo.makeRequest(dataProviderPtr);
         this.dataProviderBinding_ = new mojo.Binding(
             device.mojom.XRFrameDataProvider, this, dataProviderRequest);
@@ -952,17 +952,17 @@ class MockXRPresentationProvider {
     this.binding_.close();
 
     this.binding_ = new mojo.Binding(
         device.mojom.XRPresentationProvider, this, providerRequest);
 
     return providerPtr;
   }
 
-  getClientRequest() {
+  getClientReceiver() {
     this.submitFrameClient_ = new device.mojom.XRPresentationClientPtr();
     return mojo.makeRequest(this.submitFrameClient_);
   }
 
   // XRPresentationProvider mojo implementation
   submitFrameMissing(frameId, mailboxHolder, timeWaited) {
     this.missing_frame_count_++;
   }