mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
servo: Merge #16799 - Remove unused opts (from pyfisch:unused-opts); r=Wafflespeanut
<!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15963 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 9a419ec3d50436b3a91227880114d9985f2097e7 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : c8a4792175223093f01521119e2a1a2942538e90
This commit is contained in:
parent
256aeb441c
commit
dcc9a52f1c
@ -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.");
|
||||
@ -426,8 +400,8 @@ fn print_debug_usage(app: &str) -> ! {
|
||||
print_option("wr-stats", "Show WebRender profiler on screen.");
|
||||
print_option("msaa", "Use multisample antialiasing in WebRender.");
|
||||
print_option("full-backtraces", "Print full backtraces for all errors");
|
||||
print_option("wr-debug", "Display webrender tile borders. Must be used with -w option.");
|
||||
print_option("precache-shaders", "Compile all shaders during init. Must be used with -w option.");
|
||||
print_option("wr-debug", "Display webrender tile borders.");
|
||||
print_option("precache-shaders", "Compile all shaders during init.");
|
||||
print_option("signpost", "Emit native OS signposts for profile events (currently macOS only)");
|
||||
|
||||
println!("");
|
||||
@ -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…
Reference in New Issue
Block a user