mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Store Compositor ReadyState per-pipeline
Instead of storing a single ReadyState, store one per pipeline and track the earliest one.
This commit is contained in:
parent
a2ab6f9799
commit
c182308350
5 changed files with 31 additions and 15 deletions
|
@ -38,8 +38,8 @@ pub struct CompositorChan {
|
|||
|
||||
/// Implementation of the abstract `ScriptListener` interface.
|
||||
impl ScriptListener for CompositorChan {
|
||||
fn set_ready_state(&self, ready_state: ReadyState) {
|
||||
let msg = ChangeReadyState(ready_state);
|
||||
fn set_ready_state(&self, pipeline_id: PipelineId, ready_state: ReadyState) {
|
||||
let msg = ChangeReadyState(pipeline_id, ready_state);
|
||||
self.chan.send(msg);
|
||||
}
|
||||
|
||||
|
@ -174,7 +174,7 @@ pub enum Msg {
|
|||
/// Requests that the compositor paint the given layer buffer set for the given page size.
|
||||
Paint(PipelineId, Epoch, Vec<(LayerId, Box<LayerBufferSet>)>),
|
||||
/// Alerts the compositor to the current status of page loading.
|
||||
ChangeReadyState(ReadyState),
|
||||
ChangeReadyState(PipelineId, ReadyState),
|
||||
/// Alerts the compositor to the current status of rendering.
|
||||
ChangeRenderState(RenderState),
|
||||
/// Alerts the compositor that the RenderMsg has been discarded.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue