diff options
Diffstat (limited to 'components/gfx/paint_thread.rs')
-rw-r--r-- | components/gfx/paint_thread.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/components/gfx/paint_thread.rs b/components/gfx/paint_thread.rs index 3f945c3898c..50afd79bd58 100644 --- a/components/gfx/paint_thread.rs +++ b/components/gfx/paint_thread.rs @@ -342,7 +342,7 @@ pub enum Msg { #[derive(Deserialize, Serialize)] pub enum LayoutToPaintMsg { PaintInit(Epoch, Arc<DisplayList>), - Exit(IpcSender<()>), + Exit, } pub enum ChromeToPaintMsg { @@ -505,21 +505,20 @@ impl<C> PaintThread<C> where C: PaintListener + Send + 'static { // FIXME(njn): should eventually measure the paint thread. channel.send(Vec::new()) } - Msg::FromLayout(LayoutToPaintMsg::Exit(ref response_channel)) => { + Msg::FromLayout(LayoutToPaintMsg::Exit) => { // Ask the compositor to remove any layers it is holding for this paint thread. // FIXME(mrobinson): This can probably move back to the constellation now. + debug!("PaintThread: Exiting."); self.compositor.notify_paint_thread_exiting(self.id); - debug!("PaintThread: Exiting."); - let _ = response_channel.send(()); break; } Msg::FromChrome(ChromeToPaintMsg::Exit) => { // Ask the compositor to remove any layers it is holding for this paint thread. // FIXME(mrobinson): This can probably move back to the constellation now. + debug!("PaintThread: Exiting."); self.compositor.notify_paint_thread_exiting(self.id); - debug!("PaintThread: Exiting."); break; } } |