diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-06-04 19:28:25 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-06-13 17:46:12 +0530 |
commit | 71401e0855c24e4cf86a754171f0162ae08d8e55 (patch) | |
tree | 34587c934aa127849ed943c44ec79f71ee904935 /components/script_traits/script_msg.rs | |
parent | 73760ea59434971d24e6aac7e5fe3c79c1ba5bf6 (diff) | |
download | servo-71401e0855c24e4cf86a754171f0162ae08d8e55.tar.gz servo-71401e0855c24e4cf86a754171f0162ae08d8e55.zip |
Implement GPUSwapChain and GPUCanvasContext and interface with Webrender
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r-- | components/script_traits/script_msg.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs index 291d6f4798e..83dc024b0d3 100644 --- a/components/script_traits/script_msg.rs +++ b/components/script_traits/script_msg.rs @@ -38,7 +38,7 @@ use std::collections::{HashMap, VecDeque}; use std::fmt; use style_traits::viewport::ViewportConstraints; use style_traits::CSSPixel; -use webgpu::{wgpu, WebGPUResponseResult}; +use webgpu::{wgpu, WebGPU, WebGPUResponseResult}; use webrender_api::units::{DeviceIntPoint, DeviceIntSize}; /// A particular iframe's size, associated with a browsing context. @@ -280,6 +280,8 @@ pub enum ScriptMsg { wgpu::instance::RequestAdapterOptions, SmallVec<[wgpu::id::AdapterId; 4]>, ), + /// Get WebGPU channel + GetWebGPUChan(IpcSender<WebGPU>), } impl fmt::Debug for ScriptMsg { @@ -338,6 +340,7 @@ impl fmt::Debug for ScriptMsg { GetScreenAvailSize(..) => "GetScreenAvailSize", MediaSessionEvent(..) => "MediaSessionEvent", RequestAdapter(..) => "RequestAdapter", + GetWebGPUChan(..) => "GetWebGPUChan", }; write!(formatter, "ScriptMsg::{}", variant) } |