mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Allow the embedder to register their own VRServices
This commit is contained in:
parent
c80c3f3167
commit
a062c40567
9 changed files with 48 additions and 45 deletions
|
@ -39,6 +39,7 @@ style_traits = {path = "../style_traits"}
|
|||
time = "0.1.17"
|
||||
webrender = {git = "https://github.com/servo/webrender", features = ["capture"]}
|
||||
webrender_api = {git = "https://github.com/servo/webrender", features = ["ipc"]}
|
||||
webvr = {path = "../webvr"}
|
||||
|
||||
[build-dependencies]
|
||||
toml = "0.4.5"
|
||||
|
|
|
@ -14,11 +14,11 @@ use script_traits::{MouseButton, TouchEventType, TouchId};
|
|||
use servo_geometry::DeviceIndependentPixel;
|
||||
use servo_url::ServoUrl;
|
||||
use std::fmt::{Debug, Error, Formatter};
|
||||
use std::os::raw::c_void;
|
||||
#[cfg(feature = "gl")]
|
||||
use std::rc::Rc;
|
||||
use style_traits::DevicePixel;
|
||||
use webrender_api::{DeviceIntPoint, DeviceIntRect, DeviceIntSize, DevicePoint, ScrollLocation};
|
||||
use webvr::VRServiceManager;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub enum MouseWindowEvent {
|
||||
|
@ -146,11 +146,8 @@ pub trait WindowMethods {
|
|||
/// will want to avoid blocking on UI events, and just
|
||||
/// run the event loop at the vsync interval.
|
||||
fn set_animation_state(&self, _state: AnimationState);
|
||||
/// Provide a c_void pointer to a VRExternal shared memory.
|
||||
/// See: https://github.com/servo/rust-webvr/tree/master/rust-webvr/src/api/vrexternal
|
||||
fn get_vrexternal_pointer(&self) -> Option<*mut c_void> {
|
||||
None
|
||||
}
|
||||
/// Register services with a VRServiceManager.
|
||||
fn register_vr_services(&self, _: &mut VRServiceManager) {}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue