mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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
|
@ -20,7 +20,7 @@ pub enum RenderState {
|
|||
RenderingRenderState,
|
||||
}
|
||||
|
||||
#[deriving(PartialEq, Clone)]
|
||||
#[deriving(Eq, Ord, PartialEq, PartialOrd, Clone)]
|
||||
pub enum ReadyState {
|
||||
/// Informs the compositor that nothing has been done yet. Used for setting status
|
||||
Blank,
|
||||
|
@ -107,7 +107,7 @@ pub trait RenderListener {
|
|||
/// The interface used by the script task to tell the compositor to update its ready state,
|
||||
/// which is used in displaying the appropriate message in the window's title.
|
||||
pub trait ScriptListener : Clone {
|
||||
fn set_ready_state(&self, ReadyState);
|
||||
fn set_ready_state(&self, PipelineId, ReadyState);
|
||||
fn scroll_fragment_point(&self,
|
||||
pipeline_id: PipelineId,
|
||||
layer_id: LayerId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue