aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/paint_task.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2015-07-24 17:00:10 -0700
committerJosh Matthews <josh@joshmatthews.net>2015-11-19 16:38:04 -0500
commit1c130819ca6fdcef66495ea3dabf9d9575774d52 (patch)
treed5c58d9891ee0958aeeffdb04f86fd813fe0a4c3 /components/gfx/paint_task.rs
parentff4171170dba925b9036bf59af7dc17202273af1 (diff)
downloadservo-1c130819ca6fdcef66495ea3dabf9d9575774d52.tar.gz
servo-1c130819ca6fdcef66495ea3dabf9d9575774d52.zip
compositing: Split Servo up into multiple sandboxed processes.
Multiprocess mode is enabled with the `-M` switch, and sandboxing is enabled with the `-S` switch.
Diffstat (limited to 'components/gfx/paint_task.rs')
-rw-r--r--components/gfx/paint_task.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/components/gfx/paint_task.rs b/components/gfx/paint_task.rs
index 82b0e75d284..d3859e30651 100644
--- a/components/gfx/paint_task.rs
+++ b/components/gfx/paint_task.rs
@@ -36,8 +36,7 @@ use std::sync::mpsc::{Receiver, Select, Sender, channel};
use url::Url;
use util::geometry::{ExpandToPixelBoundaries, ZERO_POINT};
use util::opts;
-use util::task::spawn_named;
-use util::task::spawn_named_with_send_on_failure;
+use util::task;
use util::task_state;
#[derive(Clone, Deserialize, Serialize, HeapSizeOf)]
@@ -255,9 +254,11 @@ impl<C> PaintTask<C> where C: PaintListener + Send + 'static {
failure_msg: Failure,
time_profiler_chan: time::ProfilerChan,
mem_profiler_chan: mem::ProfilerChan,
- shutdown_chan: Sender<()>) {
+ shutdown_chan: IpcSender<()>) {
let ConstellationChan(c) = constellation_chan.clone();
- spawn_named_with_send_on_failure(format!("PaintTask {:?}", id), task_state::PAINT, move || {
+ task::spawn_named_with_send_on_failure(format!("PaintTask {:?}", id),
+ task_state::PAINT,
+ move || {
{
// Ensures that the paint task and graphics context are destroyed before the
// shutdown message.
@@ -572,7 +573,7 @@ impl WorkerThreadProxy {
let (to_worker_sender, to_worker_receiver) = channel();
let font_cache_task = font_cache_task.clone();
let time_profiler_chan = time_profiler_chan.clone();
- spawn_named("PaintWorker".to_owned(), move || {
+ task::spawn_named("PaintWorker".to_owned(), move || {
let mut worker_thread = WorkerThread::new(from_worker_sender,
to_worker_receiver,
native_display,