mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Remove unused debug opts
This commit is contained in:
parent
588922fecf
commit
11903830f8
1 changed files with 0 additions and 32 deletions
|
@ -85,16 +85,9 @@ pub struct Opts {
|
|||
/// (`--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,
|
||||
|
||||
/// True if we should paint borders around flows based on which thread painted them.
|
||||
pub show_debug_parallel_layout: bool,
|
||||
|
||||
/// True if we should paint tiles a random color whenever they're repainted. Useful for
|
||||
/// debugging invalidation.
|
||||
pub paint_flashing: 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.
|
||||
|
@ -167,9 +160,6 @@ pub struct Opts {
|
|||
/// Dumps the display list in JSON form after a layout.
|
||||
pub dump_display_list_json: bool,
|
||||
|
||||
/// Dumps the layer tree when it changes.
|
||||
pub dump_layer_tree: bool,
|
||||
|
||||
/// Emits notifications when there is a relayout.
|
||||
pub relayout_event: bool,
|
||||
|
||||
|
@ -267,9 +257,6 @@ pub struct DebugOptions {
|
|||
/// Print the display list in JSON form.
|
||||
pub dump_display_list_json: bool,
|
||||
|
||||
/// Print the layer tree whenever it changes.
|
||||
pub dump_layer_tree: bool,
|
||||
|
||||
/// Print notifications when there is a relayout.
|
||||
pub relayout_event: bool,
|
||||
|
||||
|
@ -282,15 +269,9 @@ pub struct DebugOptions {
|
|||
/// Paint borders along fragment boundaries.
|
||||
pub show_fragment_borders: bool,
|
||||
|
||||
/// Overlay tiles with colors showing which thread painted them.
|
||||
pub show_parallel_paint: bool,
|
||||
|
||||
/// Mark which thread laid each flow out with colors.
|
||||
pub show_parallel_layout: bool,
|
||||
|
||||
/// Overlay repainted areas with a random color.
|
||||
pub paint_flashing: bool,
|
||||
|
||||
/// Write layout trace to an external file for debugging.
|
||||
pub trace_layout: bool,
|
||||
|
||||
|
@ -356,14 +337,11 @@ impl DebugOptions {
|
|||
"dump-flow-tree" => self.dump_flow_tree = true,
|
||||
"dump-display-list" => self.dump_display_list = true,
|
||||
"dump-display-list-json" => self.dump_display_list_json = true,
|
||||
"dump-layer-tree" => self.dump_layer_tree = true,
|
||||
"relayout-event" => self.relayout_event = true,
|
||||
"profile-script-events" => self.profile_script_events = true,
|
||||
"profile-heartbeats" => self.profile_heartbeats = true,
|
||||
"show-fragment-borders" => self.show_fragment_borders = true,
|
||||
"show-parallel-paint" => self.show_parallel_paint = true,
|
||||
"show-parallel-layout" => self.show_parallel_layout = true,
|
||||
"paint-flashing" => self.paint_flashing = true,
|
||||
"trace-layout" => self.trace_layout = true,
|
||||
"disable-share-style-cache" => self.disable_share_style_cache = true,
|
||||
"style-sharing-stats" => self.style_sharing_stats = true,
|
||||
|
@ -402,15 +380,11 @@ fn print_debug_usage(app: &str) -> ! {
|
|||
print_option("dump-flow-tree", "Print the flow tree after each layout.");
|
||||
print_option("dump-display-list", "Print the display list after each layout.");
|
||||
print_option("dump-display-list-json", "Print the display list in JSON form.");
|
||||
print_option("dump-layer-tree", "Print the layer tree whenever it changes.");
|
||||
print_option("relayout-event", "Print notifications when there is a relayout.");
|
||||
print_option("profile-script-events", "Enable profiling of script-related events.");
|
||||
print_option("profile-heartbeats", "Enable heartbeats for all thread categories.");
|
||||
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("show-parallel-layout", "Mark which thread laid each flow out with colors.");
|
||||
print_option("paint-flashing", "Overlay repainted areas with a random color.");
|
||||
print_option("trace-layout", "Write layout trace to an external file for debugging.");
|
||||
print_option("disable-share-style-cache",
|
||||
"Disable the style sharing cache.");
|
||||
|
@ -515,9 +489,7 @@ pub fn default_opts() -> Opts {
|
|||
hard_fail: true,
|
||||
bubble_inline_sizes_separately: false,
|
||||
show_debug_fragment_borders: false,
|
||||
show_debug_parallel_paint: false,
|
||||
show_debug_parallel_layout: false,
|
||||
paint_flashing: false,
|
||||
enable_text_antialiasing: false,
|
||||
enable_subpixel_text_antialiasing: false,
|
||||
enable_canvas_antialiasing: false,
|
||||
|
@ -536,7 +508,6 @@ pub fn default_opts() -> Opts {
|
|||
dump_flow_tree: false,
|
||||
dump_display_list: false,
|
||||
dump_display_list_json: false,
|
||||
dump_layer_tree: false,
|
||||
relayout_event: false,
|
||||
profile_script_events: false,
|
||||
profile_heartbeats: false,
|
||||
|
@ -824,9 +795,7 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult {
|
|||
random_pipeline_closure_probability: random_pipeline_closure_probability,
|
||||
random_pipeline_closure_seed: random_pipeline_closure_seed,
|
||||
show_debug_fragment_borders: debug_options.show_fragment_borders,
|
||||
show_debug_parallel_paint: debug_options.show_parallel_paint,
|
||||
show_debug_parallel_layout: debug_options.show_parallel_layout,
|
||||
paint_flashing: debug_options.paint_flashing,
|
||||
enable_text_antialiasing: !debug_options.disable_text_aa,
|
||||
enable_subpixel_text_antialiasing: !debug_options.disable_subpixel_aa,
|
||||
enable_canvas_antialiasing: !debug_options.disable_canvas_aa,
|
||||
|
@ -835,7 +804,6 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult {
|
|||
dump_flow_tree: debug_options.dump_flow_tree,
|
||||
dump_display_list: debug_options.dump_display_list,
|
||||
dump_display_list_json: debug_options.dump_display_list_json,
|
||||
dump_layer_tree: debug_options.dump_layer_tree,
|
||||
relayout_event: debug_options.relayout_event,
|
||||
disable_share_style_cache: debug_options.disable_share_style_cache,
|
||||
style_sharing_stats: debug_options.style_sharing_stats,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue