mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add Servo3D immersive demo for magicleap
This commit is contained in:
parent
e381cebeb6
commit
0b48ff496f
20 changed files with 454 additions and 77 deletions
|
@ -161,10 +161,10 @@ pub trait WindowMethods {
|
|||
|
||||
pub trait EmbedderMethods {
|
||||
/// Returns a thread-safe object to wake up the window's event loop.
|
||||
fn create_event_loop_waker(&self) -> Box<dyn EventLoopWaker>;
|
||||
fn create_event_loop_waker(&mut self) -> Box<dyn EventLoopWaker>;
|
||||
/// Register services with a VRServiceManager.
|
||||
fn register_vr_services(
|
||||
&self,
|
||||
&mut self,
|
||||
_: &mut VRServiceManager,
|
||||
_: &mut Vec<Box<WebVRMainThreadHeartbeat>>,
|
||||
) {
|
||||
|
|
|
@ -1436,7 +1436,7 @@ impl Window {
|
|||
|
||||
let complete = match join_port.try_recv() {
|
||||
Err(TryRecvError::Empty) => {
|
||||
info!("script: waiting on layout");
|
||||
debug!("script: waiting on layout");
|
||||
join_port.recv().unwrap()
|
||||
},
|
||||
Ok(reflow_complete) => reflow_complete,
|
||||
|
|
|
@ -199,7 +199,7 @@ impl<Window> Servo<Window>
|
|||
where
|
||||
Window: WindowMethods + 'static + ?Sized,
|
||||
{
|
||||
pub fn new(embedder: Box<EmbedderMethods>, window: Rc<Window>) -> Servo<Window> {
|
||||
pub fn new(mut embedder: Box<EmbedderMethods>, window: Rc<Window>) -> Servo<Window> {
|
||||
// Global configuration options, parsed from the command line.
|
||||
let opts = opts::get();
|
||||
|
||||
|
|
|
@ -22,7 +22,8 @@ gleam = "0.6"
|
|||
ipc-channel = "0.11.2"
|
||||
log = "0.4"
|
||||
msg = {path = "../msg"}
|
||||
rust-webvr = {version = "0.11.3", features = ["mock", "openvr", "vrexternal"]}
|
||||
rust-webvr = {version = "0.11.4", features = ["mock", "openvr", "vrexternal"]}
|
||||
rust-webvr-api = "0.11.4"
|
||||
script_traits = {path = "../script_traits"}
|
||||
servo_config = {path = "../config"}
|
||||
webvr_traits = {path = "../webvr_traits" }
|
||||
|
|
|
@ -12,3 +12,4 @@ pub use crate::webvr_thread::{WebVRCompositorHandler, WebVRThread};
|
|||
pub use rust_webvr::api::VRExternalShmemPtr;
|
||||
pub use rust_webvr::VRMainThreadHeartbeat;
|
||||
pub use rust_webvr::VRServiceManager;
|
||||
pub use rust_webvr_api::VRService;
|
||||
|
|
|
@ -13,5 +13,5 @@ path = "lib.rs"
|
|||
[dependencies]
|
||||
ipc-channel = "0.11"
|
||||
msg = {path = "../msg"}
|
||||
rust-webvr-api = {version = "0.11.1", features = ["ipc"]}
|
||||
rust-webvr-api = {version = "0.11.4", features = ["ipc"]}
|
||||
serde = "1.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue