From 9eb75d4ea6d5df75f8bc18103401e565648c3b9d Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Tue, 2 Jul 2019 12:34:58 -0500 Subject: Use webxr IPC to get a WebXR device registry to each script thread --- components/constellation/pipeline.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'components/constellation/pipeline.rs') diff --git a/components/constellation/pipeline.rs b/components/constellation/pipeline.rs index 3c1ebd7896a..9b1f0e7b336 100644 --- a/components/constellation/pipeline.rs +++ b/components/constellation/pipeline.rs @@ -188,6 +188,9 @@ pub struct InitialPipelineState { /// A channel to the webvr thread. pub webvr_chan: Option>, + + /// The XR device registry + pub webxr_registry: webxr_api::Registry, } pub struct NewPipeline { @@ -305,6 +308,7 @@ impl Pipeline { webrender_document: state.webrender_document, webgl_chan: state.webgl_chan, webvr_chan: state.webvr_chan, + webxr_registry: state.webxr_registry, }; // Spawn the child process. @@ -510,6 +514,7 @@ pub struct UnprivilegedPipelineContent { webrender_document: webrender_api::DocumentId, webgl_chan: Option, webvr_chan: Option>, + webxr_registry: webxr_api::Registry, } impl UnprivilegedPipelineContent { @@ -554,6 +559,7 @@ impl UnprivilegedPipelineContent { content_process_shutdown_chan: self.script_content_process_shutdown_chan, webgl_chan: self.webgl_chan, webvr_chan: self.webvr_chan, + webxr_registry: self.webxr_registry, webrender_document: self.webrender_document, webrender_api_sender: self.webrender_api_sender.clone(), layout_is_busy: layout_thread_busy_flag.clone(), -- cgit v1.2.3