Avoid recompiling script every time surfman changes

This commit is contained in:
Alan Jeffrey 2019-11-15 09:18:55 -06:00
parent f890d2e21d
commit 124de75089
13 changed files with 36 additions and 21 deletions

View file

@ -41,7 +41,7 @@ webrender = {git = "https://github.com/servo/webrender", features = ["capture"]}
webrender_api = {git = "https://github.com/servo/webrender", features = ["ipc"]}
webvr_traits = {path = "../webvr_traits"}
webvr = {path = "../webvr"}
webxr-api = {git = "https://github.com/servo/webxr"}
webxr = {git = "https://github.com/servo/webxr"}
[build-dependencies]
toml = "0.5"

View file

@ -182,7 +182,7 @@ pub struct IOCompositor<Window: WindowMethods + ?Sized> {
webvr_heartbeats: Vec<Box<dyn WebVRMainThreadHeartbeat>>,
/// Some XR devices want to run on the main thread.
pub webxr_main_thread: webxr_api::MainThreadRegistry,
pub webxr_main_thread: webxr::MainThreadRegistry,
/// Map of the pending paint metrics per layout thread.
/// The layout thread for each specific pipeline expects the compositor to

View file

@ -164,5 +164,5 @@ pub struct InitialCompositorState {
pub webrender_document: webrender_api::DocumentId,
pub webrender_api: webrender_api::RenderApi,
pub webvr_heartbeats: Vec<Box<dyn WebVRMainThreadHeartbeat>>,
pub webxr_main_thread: webxr_api::MainThreadRegistry,
pub webxr_main_thread: webxr::MainThreadRegistry,
}

View file

@ -19,6 +19,7 @@ use std::fmt::{Debug, Error, Formatter};
use std::rc::Rc;
use std::time::Duration;
use style_traits::DevicePixel;
use webrender_api::units::DevicePoint;
use webrender_api::units::{DeviceIntPoint, DeviceIntRect, DeviceIntSize};
use webrender_api::ScrollLocation;
@ -176,7 +177,7 @@ pub trait EmbedderMethods {
}
/// Register services with a WebXR Registry.
fn register_webxr(&mut self, _: &mut webxr_api::MainThreadRegistry) {}
fn register_webxr(&mut self, _: &mut webxr::MainThreadRegistry) {}
}
#[derive(Clone, Copy, Debug)]