mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Add OSMesa headless mode, run WPT against Webrender, update tests.
This commit is contained in:
parent
06bb57bdcb
commit
cdb69d4423
164 changed files with 2095 additions and 458 deletions
|
@ -791,8 +791,7 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult {
|
|||
!PREFS.get("shell.native-titlebar.enabled").as_boolean().unwrap();
|
||||
|
||||
let use_webrender =
|
||||
(PREFS.get("gfx.webrender.enabled").as_boolean().unwrap() || opt_match.opt_present("w")) &&
|
||||
!opt_match.opt_present("z");
|
||||
PREFS.get("gfx.webrender.enabled").as_boolean().unwrap() || opt_match.opt_present("w");
|
||||
|
||||
let render_api = match opt_match.opt_str("G") {
|
||||
Some(ref ga) if ga == "gl" => RenderApi::GL,
|
||||
|
@ -944,3 +943,9 @@ pub fn parse_url_or_filename(cwd: &Path, input: &str) -> Result<Url, ()> {
|
|||
Err(_) => Err(()),
|
||||
}
|
||||
}
|
||||
|
||||
impl Opts {
|
||||
pub fn should_use_osmesa(&self) -> bool {
|
||||
self.headless
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue