aboutsummaryrefslogtreecommitdiffstats
path: root/components/constellation/pipeline.rs
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2019-07-02 12:34:58 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2019-07-03 08:53:40 -0500
commit9eb75d4ea6d5df75f8bc18103401e565648c3b9d (patch)
tree4793587ed36f5d05d65d0915d5aef8584631bce4 /components/constellation/pipeline.rs
parentfee1418b43264771a5de6dfeaa94128fa6bf8793 (diff)
downloadservo-9eb75d4ea6d5df75f8bc18103401e565648c3b9d.tar.gz
servo-9eb75d4ea6d5df75f8bc18103401e565648c3b9d.zip
Use webxr IPC to get a WebXR device registry to each script thread
Diffstat (limited to 'components/constellation/pipeline.rs')
-rw-r--r--components/constellation/pipeline.rs6
1 files changed, 6 insertions, 0 deletions
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<IpcSender<WebVRMsg>>,
+
+ /// 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<WebGLPipeline>,
webvr_chan: Option<IpcSender<WebVRMsg>>,
+ 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(),