Update rust-webvr to 0.8

This commit is contained in:
Imanol Fernandez 2017-08-31 00:02:16 +02:00
parent 19cbea23a8
commit 714fe3b88a
7 changed files with 22 additions and 9 deletions

View file

@ -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" }

View file

@ -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;

View file

@ -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();
}
}
}