Auto merge of #9706 - mrobinson:remove-parallel-display-list-building, r=pcwalton

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.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9706)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-02-25 02:52:45 +05:30
commit 7f8c34ce8e
3 changed files with 3 additions and 80 deletions

View file

@ -860,19 +860,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.");