mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use webxr IPC to get a WebXR device registry to each script thread
This commit is contained in:
parent
fee1418b43
commit
9eb75d4ea6
12 changed files with 148 additions and 35 deletions
|
@ -25,6 +25,7 @@ pixels = {path = "../pixels"}
|
|||
serde = "1.0"
|
||||
serde_bytes = "0.10"
|
||||
servo_config = {path = "../config"}
|
||||
typetag = "0.1"
|
||||
webrender_api = {git = "https://github.com/servo/webrender", features = ["ipc"]}
|
||||
webvr_traits = {path = "../webvr_traits"}
|
||||
webxr-api = {git = "https://github.com/servo/webxr"}
|
||||
|
|
|
@ -177,6 +177,7 @@ impl WebGLMsgSender {
|
|||
}
|
||||
}
|
||||
|
||||
#[typetag::serde]
|
||||
impl webxr_api::WebGLExternalImageApi for WebGLMsgSender {
|
||||
fn lock(&self) -> Result<(GLuint, Size2D<i32>, GLsync), webxr_api::Error> {
|
||||
let (sender, receiver) = webgl_channel().or(Err(webxr_api::Error::CommunicationError))?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue