mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update to latest xrtest api
This commit is contained in:
parent
faea7716cf
commit
c19240a454
17 changed files with 269 additions and 190 deletions
|
@ -13,5 +13,5 @@ path = "lib.rs"
|
|||
[dependencies]
|
||||
ipc-channel = "0.11"
|
||||
msg = {path = "../msg"}
|
||||
rust-webvr-api = {version = "0.12", features = ["ipc"]}
|
||||
rust-webvr-api = {version = "0.13", features = ["ipc"]}
|
||||
serde = "1.0"
|
||||
|
|
|
@ -11,7 +11,6 @@ mod webvr_traits;
|
|||
|
||||
pub use crate::webvr_traits::{WebVRMsg, WebVRResult};
|
||||
pub use rust_webvr_api as webvr;
|
||||
pub use rust_webvr_api::MockVRControlMsg;
|
||||
pub use rust_webvr_api::VRDisplayCapabilities as WebVRDisplayCapabilities;
|
||||
pub use rust_webvr_api::VRDisplayData as WebVRDisplayData;
|
||||
pub use rust_webvr_api::VRDisplayEvent as WebVRDisplayEvent;
|
||||
|
@ -31,6 +30,7 @@ pub use rust_webvr_api::VRLayer as WebVRLayer;
|
|||
pub use rust_webvr_api::VRMainThreadHeartbeat as WebVRMainThreadHeartbeat;
|
||||
pub use rust_webvr_api::VRPose as WebVRPose;
|
||||
pub use rust_webvr_api::VRStageParameters as WebVRStageParameters;
|
||||
pub use rust_webvr_api::{MockVRControlMsg, MockVRInit, MockVRView};
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct WebVRPoseInformation {
|
||||
|
|
|
@ -26,7 +26,7 @@ pub enum WebVRMsg {
|
|||
RequestPresent(PipelineId, u32, IpcSender<WebVRResult<()>>),
|
||||
ExitPresent(PipelineId, u32, Option<IpcSender<WebVRResult<()>>>),
|
||||
CreateCompositor(u32),
|
||||
CreateMockDisplay,
|
||||
CreateMockDisplay(MockVRInit),
|
||||
MessageMockDisplay(MockVRControlMsg),
|
||||
GetGamepads(
|
||||
Vec<u32>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue