diff options
Diffstat (limited to 'components/script_traits')
-rw-r--r-- | components/script_traits/Cargo.toml | 1 | ||||
-rw-r--r-- | components/script_traits/lib.rs | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/components/script_traits/Cargo.toml b/components/script_traits/Cargo.toml index 3fbdfd1f918..6d736ff3492 100644 --- a/components/script_traits/Cargo.toml +++ b/components/script_traits/Cargo.toml @@ -39,6 +39,7 @@ style_traits = {path = "../style_traits", features = ["servo"]} time = "0.1.12" url = "2.0" webdriver = "0.40" +webgpu = {path = "../webgpu"} webrender_api = {git = "https://github.com/servo/webrender", features = ["ipc"]} webvr_traits = {path = "../webvr_traits"} webxr-api = {git = "https://github.com/servo/webxr", features = ["ipc"]} diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index a8a19b5a40a..efa877adb17 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -60,6 +60,7 @@ use std::sync::Arc; use std::time::Duration; use style_traits::CSSPixel; use style_traits::SpeculativePainter; +use webgpu::WebGPU; use webrender_api::units::{DeviceIntSize, DevicePixel, LayoutPixel}; use webrender_api::{DocumentId, ExternalScrollId, ImageKey, RenderApiSender}; use webvr_traits::{WebVREvent, WebVRMsg}; @@ -656,6 +657,8 @@ pub struct InitialScriptState { pub content_process_shutdown_chan: Sender<()>, /// A channel to the WebGL thread used in this pipeline. pub webgl_chan: Option<WebGLPipeline>, + /// A channel to the WebGPU threads. + pub webgpu: Option<WebGPU>, /// A channel to the webvr thread, if available. pub webvr_chan: Option<IpcSender<WebVRMsg>>, /// The XR device registry |