mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Rework “visible” to “throttled” in constellation + script + compositor (#31816)
This commit is contained in:
parent
9b26dca141
commit
8882507ad0
12 changed files with 124 additions and 129 deletions
|
@ -81,8 +81,8 @@ pub enum CompositorMsg {
|
|||
CreatePng(Option<Rect<f32, CSSPixel>>, IpcSender<Option<Image>>),
|
||||
/// A reply to the compositor asking if the output image is stable.
|
||||
IsReadyToSaveImageReply(bool),
|
||||
/// Pipeline visibility changed
|
||||
PipelineVisibilityChanged(PipelineId, bool),
|
||||
/// Set whether to use less resources by stopping animations.
|
||||
SetThrottled(PipelineId, bool),
|
||||
/// WebRender has produced a new frame. This message informs the compositor that
|
||||
/// the frame is ready, so that it may trigger a recomposite.
|
||||
NewWebRenderFrameReady(bool /* composite_needed */),
|
||||
|
@ -157,7 +157,7 @@ impl Debug for CompositorMsg {
|
|||
CompositorMsg::TouchEventProcessed(..) => write!(f, "TouchEventProcessed"),
|
||||
CompositorMsg::CreatePng(..) => write!(f, "CreatePng"),
|
||||
CompositorMsg::IsReadyToSaveImageReply(..) => write!(f, "IsReadyToSaveImageReply"),
|
||||
CompositorMsg::PipelineVisibilityChanged(..) => write!(f, "PipelineVisibilityChanged"),
|
||||
CompositorMsg::SetThrottled(..) => write!(f, "SetThrottled"),
|
||||
CompositorMsg::PipelineExited(..) => write!(f, "PipelineExited"),
|
||||
CompositorMsg::NewWebRenderFrameReady(..) => write!(f, "NewWebRenderFrameReady"),
|
||||
CompositorMsg::PendingPaintMetric(..) => write!(f, "PendingPaintMetric"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue