diff options
Diffstat (limited to 'components/canvas/canvas_paint_thread.rs')
-rw-r--r-- | components/canvas/canvas_paint_thread.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/canvas/canvas_paint_thread.rs b/components/canvas/canvas_paint_thread.rs index 36fbbe94570..71e721f784d 100644 --- a/components/canvas/canvas_paint_thread.rs +++ b/components/canvas/canvas_paint_thread.rs @@ -117,13 +117,11 @@ impl<'a> CanvasPaintThread<'a> { } } - /// Creates a new `CanvasPaintThread` and returns the out-of-process sender and the in-process - /// sender for it. + /// Creates a new `CanvasPaintThread` and returns an `IpcSender` to + /// communicate with it. pub fn start(size: Size2D<i32>, webrender_api_sender: Option<webrender_traits::RenderApiSender>) -> IpcSender<CanvasMsg> { - // TODO(pcwalton): Ask the pipeline to create this for us instead of spawning it directly. - // This will be needed for multiprocess Servo. let (sender, receiver) = ipc::channel::<CanvasMsg>().unwrap(); spawn_named("CanvasThread".to_owned(), move || { let mut painter = CanvasPaintThread::new(size, webrender_api_sender); |