Hoist retrieval of layout_threads from opts into Constellation

This commit is contained in:
Dirkjan Ochtman 2016-07-19 22:12:07 +02:00
parent 9c0e7b1cf2
commit e182d29441
6 changed files with 26 additions and 10 deletions

View file

@ -160,6 +160,7 @@ impl Pipeline {
pipeline_port: pipeline_port,
layout_to_constellation_chan: state.layout_to_constellation_chan.clone(),
content_process_shutdown_chan: layout_content_process_shutdown_chan.clone(),
layout_threads: opts::get().layout_threads,
};
if let Err(e) = script_chan.send(ConstellationControlMsg::AttachLayout(new_layout_info)) {
@ -470,7 +471,8 @@ impl UnprivilegedPipelineContent {
self.time_profiler_chan,
self.mem_profiler_chan,
self.layout_content_process_shutdown_chan,
self.webrender_api_sender);
self.webrender_api_sender,
opts::get().layout_threads);
if wait_for_completion {
let _ = self.script_content_process_shutdown_port.recv();