mirror of
https://github.com/servo/servo.git
synced 2025-07-30 18:50:36 +01:00
Use webxr IPC to get a WebXR device registry to each script thread
This commit is contained in:
parent
fee1418b43
commit
9eb75d4ea6
12 changed files with 148 additions and 35 deletions
|
@ -626,6 +626,9 @@ pub struct ScriptThread {
|
|||
/// A handle to the webvr thread, if available
|
||||
webvr_chan: Option<IpcSender<WebVRMsg>>,
|
||||
|
||||
/// The WebXR device registry
|
||||
webxr_registry: webxr_api::Registry,
|
||||
|
||||
/// The worklet thread pool
|
||||
worklet_thread_pool: DomRefCell<Option<Rc<WorkletThreadPool>>>,
|
||||
|
||||
|
@ -1212,6 +1215,7 @@ impl ScriptThread {
|
|||
|
||||
webgl_chan: state.webgl_chan,
|
||||
webvr_chan: state.webvr_chan,
|
||||
webxr_registry: state.webxr_registry,
|
||||
|
||||
worklet_thread_pool: Default::default(),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue