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:
Bryan Bell 2014-08-28 15:02:23 -07:00 committed by Martin Robinson
parent c182308350
commit 0e86679464
4 changed files with 16 additions and 10 deletions

View file

@ -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);