diff options
Diffstat (limited to 'components/compositing/compositor_task.rs')
-rw-r--r-- | components/compositing/compositor_task.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/compositing/compositor_task.rs b/components/compositing/compositor_task.rs index 3ff651da281..2fba8bfa0f6 100644 --- a/components/compositing/compositor_task.rs +++ b/components/compositing/compositor_task.rs @@ -26,7 +26,7 @@ use servo_util::cursor::Cursor; use servo_util::geometry::PagePx; use servo_util::memory::MemoryProfilerChan; use servo_util::time::TimeProfilerChan; -use std::comm::{channel, Sender, Receiver}; +use std::sync::mpsc::{channel, Sender, Receiver}; use std::fmt::{Error, Formatter, Show}; use std::rc::Rc; @@ -42,7 +42,7 @@ pub trait CompositorProxy : 'static + Send { /// The port that the compositor receives messages on. As above, this is a trait supplied by the /// Servo port. -pub trait CompositorReceiver for Sized? : 'static { +pub trait CompositorReceiver : 'static { /// Receives the next message inbound for the compositor. This must not block. fn try_recv_compositor_msg(&mut self) -> Option<Msg>; /// Synchronously waits for, and returns, the next message inbound for the compositor. @@ -58,7 +58,7 @@ impl CompositorReceiver for Receiver<Msg> { } } fn recv_compositor_msg(&mut self) -> Msg { - self.recv() + self.recv().unwrap() } } @@ -79,7 +79,7 @@ impl ScriptListener for Box<CompositorProxy+'static+Send> { fn close(&mut self) { let (chan, port) = channel(); self.send(Msg::Exit(chan)); - port.recv(); + port.recv().unwrap(); } fn dup(&mut self) -> Box<ScriptListener+'static> { @@ -98,7 +98,7 @@ impl ScriptListener for Box<CompositorProxy+'static+Send> { } /// Information about each layer that the compositor keeps. -#[deriving(Copy)] +#[derive(Copy)] pub struct LayerProperties { pub pipeline_id: PipelineId, pub epoch: Epoch, @@ -129,7 +129,7 @@ impl PaintListener for Box<CompositorProxy+'static+Send> { fn get_graphics_metadata(&mut self) -> Option<NativeGraphicsMetadata> { let (chan, port) = channel(); self.send(Msg::GetGraphicsMetadata(chan)); - port.recv() + port.recv().unwrap() } fn assign_painted_buffers(&mut self, |