aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/gfx/render_task.rs
diff options
context:
space:
mode:
authorBryan Bell <bryan.w.bell@gmail.com>2014-07-26 01:58:30 -0700
committerBryan Bell <bryan.w.bell@gmail.com>2014-07-26 16:38:34 -0700
commit8fd5739afcc4096da878ef73cceeab080c7e737b (patch)
tree7abf48814b7b663a891d1a7e73329edc6674cbe1 /src/components/gfx/render_task.rs
parent5ed95e410b3f0c7ac5fb1c1e200452b27d6b5cda (diff)
downloadservo-8fd5739afcc4096da878ef73cceeab080c7e737b.tar.gz
servo-8fd5739afcc4096da878ef73cceeab080c7e737b.zip
Track rerender msgs
If the compositor outputs to a file: * Track rerender msgs sent from the compositor to the render tasks. * Before outputting, wait until all rerender msgs are processed by the render tasks. Fixes issue https://github.com/servo/servo/issues/2871.
Diffstat (limited to 'src/components/gfx/render_task.rs')
-rw-r--r--src/components/gfx/render_task.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/gfx/render_task.rs b/src/components/gfx/render_task.rs
index d80eb050715..e81f36162c0 100644
--- a/src/components/gfx/render_task.rs
+++ b/src/components/gfx/render_task.rs
@@ -242,6 +242,7 @@ impl<C:RenderListener + Send> RenderTask<C> {
debug!("render_task: render ready msg");
let ConstellationChan(ref mut c) = self.constellation_chan;
c.send(RendererReadyMsg(self.id));
+ self.compositor.rerendermsg_discarded();
continue;
}