mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement client-side logic for WebGPU id recycling
This commit is contained in:
parent
94063d67a8
commit
39f336b527
10 changed files with 118 additions and 19 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue