mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Support for ExternalVR implementation
This commit is contained in:
parent
b7e9bab267
commit
c055b74e13
11 changed files with 66 additions and 13 deletions
|
@ -14,6 +14,7 @@ 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;
|
||||
|
@ -145,6 +146,11 @@ 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
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue