mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Remove parallel display list construction
Parallel display list construction hasn't been shown to give any performance gains. It is also incompatible with the current flat display list implementation. Once flat display lists have landed, we can explore possible benefits of parallel construction once again.
This commit is contained in:
parent
ff20a2d3dc
commit
630a9d4255
3 changed files with 3 additions and 80 deletions
|
@ -855,19 +855,7 @@ impl LayoutThread {
|
|||
flow::mut_base(flow_ref::deref_mut(layout_root)).clip =
|
||||
ClippingRegion::from_rect(&data.page_clip_rect);
|
||||
|
||||
match (&mut self.parallel_traversal, opts::get().parallel_display_list_building) {
|
||||
(&mut Some(ref mut traversal), true) => {
|
||||
parallel::build_display_list_for_subtree(layout_root,
|
||||
metadata,
|
||||
sender,
|
||||
shared_layout_context,
|
||||
traversal);
|
||||
}
|
||||
_ => {
|
||||
sequential::build_display_list_for_subtree(layout_root,
|
||||
shared_layout_context);
|
||||
}
|
||||
}
|
||||
sequential::build_display_list_for_subtree(layout_root, shared_layout_context);
|
||||
|
||||
if data.goal == ReflowGoal::ForDisplay {
|
||||
debug!("Done building display list.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue