Skip to content

Commit c171ded

Browse files
author
bors-servo
authored
Auto merge of #16757 - zombiefungus:issue16716, r=KiChjang
Remove obsolete paint threads option #16716 <!-- Please describe your changes on the following line: --> Remove paint_threads from `ports/cef/core.rs` and `components/config/opts.rs` --- <!-- 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 #16716 <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16757) <!-- Reviewable:end -->
2 parents 3f1ae64 + 9591d1e commit c171ded

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

components/config/opts.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ pub struct Opts {
3232
/// The initial URL to load.
3333
pub url: Option<ServoUrl>,
3434

35-
/// How many threads to use for CPU painting (`-t`).
36-
///
37-
/// Note that painting is sequentialized when using GPU painting.
38-
pub paint_threads: usize,
39-
4035
/// The maximum size of each tile in pixels (`-s`).
4136
pub tile_size: usize,
4237

@@ -504,7 +499,6 @@ pub fn default_opts() -> Opts {
504499
Opts {
505500
is_running_problem_test: false,
506501
url: Some(ServoUrl::parse("about:blank").unwrap()),
507-
paint_threads: 1,
508502
tile_size: 512,
509503
device_pixels_per_px: None,
510504
time_profiling: None,
@@ -693,12 +687,6 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult {
693687
.unwrap_or_else(|err| args_fail(&format!("Error parsing option: --device-pixel-ratio ({})", err)))
694688
);
695689

696-
let mut paint_threads: usize = match opt_match.opt_str("t") {
697-
Some(paint_threads_str) => paint_threads_str.parse()
698-
.unwrap_or_else(|err| args_fail(&format!("Error parsing option: -t ({})", err))),
699-
None => cmp::max(num_cpus::get() * 3 / 4, 1),
700-
};
701-
702690
// If only the flag is present, default to a 5 second period for both profilers
703691
let time_profiling = if opt_match.opt_present("p") {
704692
match opt_match.opt_str("p") {
@@ -748,7 +736,6 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult {
748736

749737
let mut bubble_inline_sizes_separately = debug_options.bubble_widths;
750738
if debug_options.trace_layout {
751-
paint_threads = 1;
752739
layout_threads = Some(1);
753740
bubble_inline_sizes_separately = true;
754741
}
@@ -809,7 +796,6 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult {
809796
let opts = Opts {
810797
is_running_problem_test: is_running_problem_test,
811798
url: Some(url),
812-
paint_threads: paint_threads,
813799
tile_size: tile_size,
814800
device_pixels_per_px: device_pixels_per_px,
815801
time_profiling: time_profiling,

ports/cef/core.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ pub extern "C" fn cef_initialize(args: *const cef_main_args_t,
6868
};
6969

7070
let mut temp_opts = opts::default_opts();
71-
temp_opts.paint_threads = rendering_threads;
7271
temp_opts.headless = false;
7372
temp_opts.hard_fail = false;
7473
temp_opts.enable_text_antialiasing = true;

0 commit comments

Comments
 (0)