aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/canvas_paint_thread.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-05-19 05:48:24 -0700
committerbors-servo <lbergstrom+bors@mozilla.com>2016-05-19 05:48:24 -0700
commit2572a7d2c5ba90cc78f6be10bb29c2e8fbc8f250 (patch)
tree29a6d67638c7961fdc7cb81b6c7a733ed4c766e2 /components/canvas/canvas_paint_thread.rs
parentdea610986dbf4a1e5898cbe6b57832784e786f3a (diff)
parente01f9f3e7b45e577c4468ba770ea5b699a8ac2ab (diff)
downloadservo-2572a7d2c5ba90cc78f6be10bb29c2e8fbc8f250.tar.gz
servo-2572a7d2c5ba90cc78f6be10bb29c2e8fbc8f250.zip
Auto merge of #11265 - Ms2ger:cleanup, r=nox
Some assorted cleanup. Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy --faster` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [x] These changes do not require tests because _____ Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11265) <!-- Reviewable:end -->
Diffstat (limited to 'components/canvas/canvas_paint_thread.rs')
-rw-r--r--components/canvas/canvas_paint_thread.rs6
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);