diff options
author | Tim Kuehn <tkuehn@cmu.edu> | 2013-09-24 00:02:48 -0400 |
---|---|---|
committer | Tim Kuehn <tkuehn@cmu.edu> | 2013-09-24 00:15:35 -0400 |
commit | 103cd6255d03f22fb8cc931a160d8601644cc35f (patch) | |
tree | ce7a37c46af67b27192c62a33679cb8a77995b1b /src/components/main/pipeline.rs | |
parent | 99f125bb644db6eabef4ee282010db995be7d4eb (diff) | |
download | servo-103cd6255d03f22fb8cc931a160d8601644cc35f.tar.gz servo-103cd6255d03f22fb8cc931a160d8601644cc35f.zip |
split script_task::ExitMsg into WindowExitMsg and PipelineExitMsg
Diffstat (limited to 'src/components/main/pipeline.rs')
-rw-r--r-- | src/components/main/pipeline.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/components/main/pipeline.rs b/src/components/main/pipeline.rs index 603f13a0d28..4e7f7c066cf 100644 --- a/src/components/main/pipeline.rs +++ b/src/components/main/pipeline.rs @@ -6,7 +6,6 @@ use extra::url::Url; use compositing::CompositorChan; use gfx::render_task::{RenderChan, RenderTask}; use gfx::render_task::{PaintPermissionGranted, PaintPermissionRevoked}; -use gfx::render_task; use gfx::opts::Opts; use layout::layout_task::LayoutTask; use script::layout_interface::LayoutChan; @@ -21,7 +20,6 @@ use servo_util::time::ProfilerChan; use geom::size::Size2D; use extra::future::Future; use std::cell::Cell; -use std::comm; use std::task; /// A uniquely-identifiable pipeline of script task, layout task, and render task. @@ -216,12 +214,9 @@ impl Pipeline { } pub fn exit(&self) { - // Script task handles shutting down layout, as well - self.script_chan.send(script_task::ExitMsg(self.id)); - - let (response_port, response_chan) = comm::stream(); - self.render_chan.send(render_task::ExitMsg(response_chan)); - response_port.recv(); + // Script task handles shutting down layout, + // and layout handles shutting down the renderer. + self.script_chan.try_send(script_task::ExitPipelineMsg(self.id)); } } |