restructure content process shutdown ack with threaded sender, without layout

This commit is contained in:
Gregory Terzian 2019-08-09 15:52:49 +08:00
parent 9bba14cb43
commit 8482d2e781
9 changed files with 9 additions and 40 deletions

View file

@ -306,7 +306,6 @@ impl LayoutThreadFactory for LayoutThread {
font_cache_thread: FontCacheThread,
time_profiler_chan: profile_time::ProfilerChan,
mem_profiler_chan: profile_mem::ProfilerChan,
content_process_shutdown_chan: Option<IpcSender<()>>,
webrender_api_sender: webrender_api::RenderApiSender,
webrender_document: webrender_api::DocumentId,
paint_time_metrics: PaintTimeMetrics,
@ -383,9 +382,6 @@ impl LayoutThreadFactory for LayoutThread {
Msg::CollectReports,
);
}
if let Some(content_process_shutdown_chan) = content_process_shutdown_chan {
let _ = content_process_shutdown_chan.send(());
}
})
.expect("Thread spawning failed");
}
@ -951,7 +947,6 @@ impl LayoutThread {
self.font_cache_thread.clone(),
self.time_profiler_chan.clone(),
self.mem_profiler_chan.clone(),
info.content_process_shutdown_chan,
self.webrender_api.clone_sender(),
self.webrender_document,
info.paint_time_metrics,