Skip to content

Commit

Permalink
Update rust-webvr to 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Aug 30, 2017
1 parent 19cbea2 commit 714fe3b
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 9 deletions.
20 changes: 15 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion components/script/Cargo.toml
Expand Up @@ -91,7 +91,6 @@ utf-8 = "0.7"
uuid = {version = "0.5", features = ["v4"]}
xml5ever = {version = "0.9"}
webrender_api = {git = "https://github.com/servo/webrender", features = ["ipc"]}
webvr = {path = "../webvr"}
webvr_traits = {path = "../webvr_traits"}

[target.'cfg(not(target_os = "ios"))'.dependencies]
Expand Down
1 change: 1 addition & 0 deletions components/webvr/Cargo.toml
Expand Up @@ -15,6 +15,7 @@ euclid = "0.15"
ipc-channel = "0.8"
log = "0.3"
msg = {path = "../msg"}
rust-webvr = {version = "0.8", features = ["openvr"]}
script_traits = {path = "../script_traits"}
servo_config = {path = "../config"}
webvr_traits = {path = "../webvr_traits" }
1 change: 1 addition & 0 deletions components/webvr/lib.rs
Expand Up @@ -10,6 +10,7 @@ extern crate ipc_channel;
#[macro_use]
extern crate log;
extern crate msg;
extern crate rust_webvr;
extern crate script_traits;
extern crate servo_config;
extern crate webvr_traits;
Expand Down
4 changes: 3 additions & 1 deletion components/webvr/webvr_thread.rs
Expand Up @@ -7,6 +7,7 @@ use euclid::Size2D;
use ipc_channel::ipc;
use ipc_channel::ipc::{IpcReceiver, IpcSender};
use msg::constellation_msg::PipelineId;
use rust_webvr::VRServiceManager;
use script_traits::ConstellationMsg;
use servo_config::prefs::PREFS;
use std::{thread, time};
Expand Down Expand Up @@ -358,7 +359,8 @@ impl webgl::WebVRRenderHandler for WebVRCompositorHandler {
texture_size: Some((size.width as u32, size.height as u32))
};
unsafe {
(*compositor.0).submit_frame(&layer);
(*compositor.0).render_layer(&layer);
(*compositor.0).submit_frame();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/webvr_traits/Cargo.toml
Expand Up @@ -12,5 +12,5 @@ path = "lib.rs"
[dependencies]
ipc-channel = "0.8"
msg = {path = "../msg"}
rust-webvr = {version = "0.5", features = ["serde-serialization"]}
rust-webvr-api = {version = "0.8", features = ["serde-serialization"]}
serde = "1.0"
2 changes: 1 addition & 1 deletion components/webvr_traits/lib.rs
Expand Up @@ -7,7 +7,7 @@
extern crate ipc_channel;
extern crate msg;
#[macro_use] extern crate serde;
pub extern crate rust_webvr as webvr;
pub extern crate rust_webvr_api as webvr;

mod webvr_traits;

Expand Down

0 comments on commit 714fe3b

Please sign in to comment.