aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2020-05-22 17:49:35 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2020-05-22 21:22:19 +0530
commit39f336b5278fc2c4ab25da508245e8eb86aa9b33 (patch)
treed8939d2b5ae9a3d918148fe1e4dc4afda3f94a54 /components/script_traits/lib.rs
parent94063d67a8fb1f4a9f776771aba9eb8a2b3bd3bd (diff)
downloadservo-39f336b5278fc2c4ab25da508245e8eb86aa9b33.tar.gz
servo-39f336b5278fc2c4ab25da508245e8eb86aa9b33.zip
Implement client-side logic for WebGPU id recycling
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r--components/script_traits/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index d0309c72864..60dbca3cdea 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -66,6 +66,7 @@ use std::sync::atomic::AtomicBool;
use std::sync::Arc;
use style_traits::CSSPixel;
use style_traits::SpeculativePainter;
+use webgpu::identity::WebGPUMsg;
use webrender_api::units::{
DeviceIntSize, DevicePixel, LayoutPixel, LayoutPoint, LayoutSize, WorldPoint,
};
@@ -401,6 +402,8 @@ pub enum ConstellationControlMsg {
PaintMetric(PipelineId, ProgressiveWebMetricType, u64),
/// Notifies the media session about a user requested media session action.
MediaSessionAction(PipelineId, MediaSessionActionType),
+ /// Notifies script thread that WebGPU server has started
+ SetWebGPUPort(IpcReceiver<WebGPUMsg>),
}
impl fmt::Debug for ConstellationControlMsg {
@@ -438,6 +441,7 @@ impl fmt::Debug for ConstellationControlMsg {
PaintMetric(..) => "PaintMetric",
ExitFullScreen(..) => "ExitFullScreen",
MediaSessionAction(..) => "MediaSessionAction",
+ SetWebGPUPort(..) => "SetWebGPUPort",
};
write!(formatter, "ConstellationControlMsg::{}", variant)
}