mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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
|
@ -234,9 +234,8 @@ impl<C:RenderListener + Send> RenderTask<C> {
|
|||
continue;
|
||||
}
|
||||
|
||||
self.compositor.set_render_state(RenderingRenderState);
|
||||
|
||||
let mut replies = Vec::new();
|
||||
self.compositor.set_render_state(self.id, RenderingRenderState);
|
||||
for RenderRequest { buffer_requests, scale, layer_id, epoch }
|
||||
in requests.move_iter() {
|
||||
if self.epoch == epoch {
|
||||
|
@ -246,7 +245,7 @@ impl<C:RenderListener + Send> RenderTask<C> {
|
|||
}
|
||||
}
|
||||
|
||||
self.compositor.set_render_state(IdleRenderState);
|
||||
self.compositor.set_render_state(self.id, IdleRenderState);
|
||||
|
||||
debug!("render_task: returning surfaces");
|
||||
self.compositor.paint(self.id, self.epoch, replies);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue