mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Update rust-webvr to 0.8
This commit is contained in:
parent
19cbea23a8
commit
714fe3b88a
7 changed files with 22 additions and 9 deletions
|
@ -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" }
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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};
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue