From efd953f768a0975e48fa9d97bba49bee55da8eed Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 19 May 2016 12:15:02 +0200 Subject: [PATCH] Update documentation for {CanvasPaintThread, WebGLPaintThread}::new(). --- components/canvas/canvas_paint_thread.rs | 6 ++---- components/canvas/webgl_paint_thread.rs | 4 ++-- 2 files changed, 4 insertions(+), 6 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, webrender_api_sender: Option) -> IpcSender { - // 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::().unwrap(); spawn_named("CanvasThread".to_owned(), move || { let mut painter = CanvasPaintThread::new(size, webrender_api_sender); diff --git a/components/canvas/webgl_paint_thread.rs b/components/canvas/webgl_paint_thread.rs index 30e47c06082..a9fe55a848a 100644 --- a/components/canvas/webgl_paint_thread.rs +++ b/components/canvas/webgl_paint_thread.rs @@ -58,8 +58,8 @@ impl WebGLPaintThread { } } - /// Creates a new `WebGLPaintThread` and returns the out-of-process sender and the in-process - /// sender for it. + /// Creates a new `WebGLPaintThread` and returns an `IpcSender` to + /// communicate with it. pub fn start(size: Size2D, attrs: GLContextAttributes, webrender_api_sender: Option)