mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update webrender + shaders.
This commit is contained in:
parent
8334020a87
commit
15f4d7c587
5 changed files with 38 additions and 13 deletions
|
@ -200,6 +200,11 @@ pub struct Opts {
|
|||
/// True to show webrender debug on screen.
|
||||
pub webrender_debug: bool,
|
||||
|
||||
/// True to compile all webrender shaders at init time. This is mostly
|
||||
/// useful when modifying the shaders, to ensure they all compile
|
||||
/// after each change is made.
|
||||
pub precache_shaders: bool,
|
||||
|
||||
/// True if WebRender should use multisample antialiasing.
|
||||
pub use_msaa: bool,
|
||||
|
||||
|
@ -313,6 +318,10 @@ pub struct DebugOptions {
|
|||
// don't skip any backtraces on panic
|
||||
pub full_backtraces: bool,
|
||||
|
||||
/// True to compile all webrender shaders at init time. This is mostly
|
||||
/// useful when modifying the shaders, to ensure they all compile
|
||||
/// after each change is made.
|
||||
pub precache_shaders: bool,
|
||||
}
|
||||
|
||||
|
||||
|
@ -351,6 +360,7 @@ impl DebugOptions {
|
|||
"wr-debug" => debug_options.webrender_debug = true,
|
||||
"msaa" => debug_options.use_msaa = true,
|
||||
"full-backtraces" => debug_options.full_backtraces = true,
|
||||
"precache-shaders" => debug_options.precache_shaders = true,
|
||||
"" => {},
|
||||
_ => return Err(option)
|
||||
};
|
||||
|
@ -400,6 +410,7 @@ pub fn print_debug_usage(app: &str) -> ! {
|
|||
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.");
|
||||
|
||||
println!("");
|
||||
|
||||
|
@ -537,6 +548,7 @@ pub fn default_opts() -> Opts {
|
|||
full_backtraces: false,
|
||||
is_printing_version: false,
|
||||
webrender_debug: false,
|
||||
precache_shaders: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -849,6 +861,7 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult {
|
|||
full_backtraces: debug_options.full_backtraces,
|
||||
is_printing_version: is_printing_version,
|
||||
webrender_debug: debug_options.webrender_debug,
|
||||
precache_shaders: debug_options.precache_shaders,
|
||||
};
|
||||
|
||||
set_defaults(opts);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue