mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Store one RenderState per-pipeline in the Compositor
This can later be used to decide whether the entire pipeline is ready for rendering.
This commit is contained in:
parent
c182308350
commit
0e86679464
4 changed files with 16 additions and 10 deletions
|
@ -126,8 +126,8 @@ impl RenderListener for CompositorChan {
|
|||
self.chan.send(RenderMsgDiscarded);
|
||||
}
|
||||
|
||||
fn set_render_state(&self, render_state: RenderState) {
|
||||
self.chan.send(ChangeRenderState(render_state))
|
||||
fn set_render_state(&self, pipeline_id: PipelineId, render_state: RenderState) {
|
||||
self.chan.send(ChangeRenderState(pipeline_id, render_state))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -176,7 +176,7 @@ pub enum Msg {
|
|||
/// Alerts the compositor to the current status of page loading.
|
||||
ChangeReadyState(PipelineId, ReadyState),
|
||||
/// Alerts the compositor to the current status of rendering.
|
||||
ChangeRenderState(RenderState),
|
||||
ChangeRenderState(PipelineId, RenderState),
|
||||
/// Alerts the compositor that the RenderMsg has been discarded.
|
||||
RenderMsgDiscarded,
|
||||
/// Sets the channel to the current layout and render tasks, along with their id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue