mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Allow dumping the optimized display list (DL).
This DL is created at paint time, per tile. To dump, pass -Z dump-display-list-optimized at startup.
This commit is contained in:
parent
653b40d3e5
commit
ad62ff599a
2 changed files with 13 additions and 1 deletions
|
@ -34,6 +34,7 @@ use libc::uintptr_t;
|
|||
use paint_task::PaintLayer;
|
||||
use msg::compositor_msg::LayerId;
|
||||
use net_traits::image::base::Image;
|
||||
use util::opts;
|
||||
use util::cursor::Cursor;
|
||||
use util::linked_list::prepend_from;
|
||||
use util::geometry::{self, Au, MAX_RECT, ZERO_RECT};
|
||||
|
@ -280,6 +281,11 @@ impl StackingContext {
|
|||
let display_list =
|
||||
DisplayListOptimizer::new(tile_bounds).optimize(&*self.display_list);
|
||||
|
||||
if opts::get().dump_display_list_optimized {
|
||||
println!("**** optimized display list. Tile bounds: {:?}", tile_bounds);
|
||||
display_list.print_items(String::from_str("*"));
|
||||
}
|
||||
|
||||
// Sort positioned children according to z-index.
|
||||
let mut positioned_children = SmallVec8::new();
|
||||
for kid in display_list.children.iter() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue