mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Hoist retrieval of layout_threads from opts into Constellation
This commit is contained in:
parent
9c0e7b1cf2
commit
e182d29441
6 changed files with 26 additions and 10 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue