mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Make Servo use a single thread-pool for layout-related tasks per-process.
Instead of per-document. This also allows to reuse this thread-pool if needed for other stuff, like parallel CSS parsing (#22478), and to share more code with Gecko, which is always nice.
This commit is contained in:
parent
27bb33cb9e
commit
006e71c7de
12 changed files with 56 additions and 77 deletions
|
@ -219,7 +219,6 @@ impl Pipeline {
|
|||
window_size: window_size,
|
||||
pipeline_port: pipeline_port,
|
||||
content_process_shutdown_chan: Some(layout_content_process_shutdown_chan),
|
||||
layout_threads: PREFS.get("layout.threads").as_u64().expect("count") as usize,
|
||||
};
|
||||
|
||||
if let Err(e) =
|
||||
|
@ -556,12 +555,6 @@ impl UnprivilegedPipelineContent {
|
|||
Some(self.layout_content_process_shutdown_chan),
|
||||
self.webrender_api_sender,
|
||||
self.webrender_document,
|
||||
self.prefs
|
||||
.get("layout.threads")
|
||||
.expect("exists")
|
||||
.value()
|
||||
.as_u64()
|
||||
.expect("count") as usize,
|
||||
paint_time_metrics,
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue