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) diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index 96befe8e827..05ac60f76ff 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -91,38 +91,38 @@ enum ReadyToSave { /// the `script` crate). pub struct Constellation { /// A channel through which script messages can be sent to this object. - pub script_sender: ConstellationChan, + script_sender: ConstellationChan, /// A channel through which compositor messages can be sent to this object. - pub compositor_sender: Sender, + compositor_sender: Sender, /// A channel through which layout thread messages can be sent to this object. - pub layout_sender: ConstellationChan, + layout_sender: ConstellationChan, /// A channel through which panic messages can be sent to this object. - pub panic_sender: ConstellationChan, + panic_sender: ConstellationChan, /// Receives messages from scripts. - pub script_receiver: Receiver, + script_receiver: Receiver, /// Receives messages from the compositor - pub compositor_receiver: Receiver, + compositor_receiver: Receiver, /// Receives messages from the layout thread - pub layout_receiver: Receiver, + layout_receiver: Receiver, /// Receives panic messages. - pub panic_receiver: Receiver, + panic_receiver: Receiver, /// A channel (the implementation of which is port-specific) through which messages can be sent /// to the compositor. - pub compositor_proxy: Box, + compositor_proxy: Box, /// A channel through which messages can be sent to the resource thread. - pub resource_thread: ResourceThread, + resource_thread: ResourceThread, /// A channel through which messages can be sent to the image cache thread. - pub image_cache_thread: ImageCacheThread, + image_cache_thread: ImageCacheThread, /// A channel through which messages can be sent to the developer tools. devtools_chan: Option>, @@ -164,10 +164,10 @@ pub struct Constellation { pending_frames: Vec, /// A channel through which messages can be sent to the time profiler. - pub time_profiler_chan: time::ProfilerChan, + time_profiler_chan: time::ProfilerChan, /// A channel through which messages can be sent to the memory profiler. - pub mem_profiler_chan: mem::ProfilerChan, + mem_profiler_chan: mem::ProfilerChan, phantom: PhantomData<(LTF, STF)>,