mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -195,8 +195,6 @@ pub struct NewLayoutInfo {
|
|||
pub pipeline_port: IpcReceiver<LayoutControlMsg>,
|
||||
/// A shutdown channel so that layout can tell the content process to shut down when it's done.
|
||||
pub content_process_shutdown_chan: Option<IpcSender<()>>,
|
||||
/// Number of threads to use for layout.
|
||||
pub layout_threads: usize,
|
||||
}
|
||||
|
||||
/// When a pipeline is closed, should its browsing context be discarded too?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue