diff options
author | Jack Moffitt <jack@metajack.im> | 2015-02-18 20:19:12 -0700 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2015-02-19 16:17:55 -0700 |
commit | 923676d443be04bafcc0ce95bcd29243f20a16e3 (patch) | |
tree | d6a6d3058e6d6d4be00d1e70287a7cb54405c67f /components/util/opts.rs | |
parent | dc31d96f65246def19cb7a23f3a62795cd7344a1 (diff) | |
download | servo-923676d443be04bafcc0ce95bcd29243f20a16e3.tar.gz servo-923676d443be04bafcc0ce95bcd29243f20a16e3.zip |
Added overlay for demoing parallel painting.
Diffstat (limited to 'components/util/opts.rs')
-rw-r--r-- | components/util/opts.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/util/opts.rs b/components/util/opts.rs index aeee40ac249..b420207bbbe 100644 --- a/components/util/opts.rs +++ b/components/util/opts.rs @@ -75,6 +75,9 @@ pub struct Opts { /// True if we should show borders on all fragments for debugging purposes (`--show-debug-fragment-borders`). pub show_debug_fragment_borders: bool, + /// True if we should paint tiles with overlays based on which thread painted them. + pub show_debug_parallel_paint: bool, + /// If set with --disable-text-aa, disable antialiasing on fonts. This is primarily useful for reftests /// where pixel perfect results are required when using fonts such as the Ahem /// font for layout tests. @@ -128,6 +131,7 @@ pub fn print_debug_usage(app: &str) { print_option("profile-tasks", "Instrument each task, writing the output to a file."); print_option("show-compositor-borders", "Paint borders along layer and tile boundaries."); print_option("show-fragment-borders", "Paint borders along fragment boundaries."); + print_option("show-parallel-paint", "Overlay tiles with colors showing which thread painted them."); print_option("trace-layout", "Write layout trace to an external file for debugging."); print_option("validate-display-list-geometry", "Display an error when display list geometry escapes overflow region."); @@ -166,6 +170,7 @@ pub fn default_opts() -> Opts { bubble_inline_sizes_separately: false, show_debug_borders: false, show_debug_fragment_borders: false, + show_debug_parallel_paint: false, enable_text_antialiasing: false, trace_layout: false, devtools_port: None, @@ -315,6 +320,7 @@ pub fn from_cmdline_args(args: &[String]) -> bool { user_agent: opt_match.opt_str("u"), show_debug_borders: debug_options.contains(&"show-compositor-borders"), show_debug_fragment_borders: debug_options.contains(&"show-fragment-borders"), + show_debug_parallel_paint: debug_options.contains(&"show-parallel-paint"), enable_text_antialiasing: !debug_options.contains(&"disable-text-aa"), dump_flow_tree: debug_options.contains(&"dump-flow-tree"), validate_display_list_geometry: debug_options.contains(&"validate-display-list-geometry"), |