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:
Martin Robinson 2016-02-19 14:52:56 -08:00
parent ff20a2d3dc
commit 630a9d4255
3 changed files with 3 additions and 80 deletions

View file

@ -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.");