Enable Skia shader trace events by default (flutter/engine#26617)

This commit is contained in:
Jason Simmons
2021-06-09 17:59:01 -07:00
committed by GitHub
parent 02ce01fd73
commit c8f45a13a4

View File

@@ -296,13 +296,18 @@ Settings SettingsFromCommandLine(const fml::CommandLine& command_line) {
settings.trace_startup =
command_line.HasOption(FlagForSwitch(Switch::TraceStartup));
settings.trace_skia =
command_line.HasOption(FlagForSwitch(Switch::TraceSkia));
#if !FLUTTER_RELEASE
settings.trace_skia = true;
std::string trace_skia_allowlist;
command_line.GetOptionValue(FlagForSwitch(Switch::TraceSkiaAllowlist),
&trace_skia_allowlist);
settings.trace_skia_allowlist = ParseCommaDelimited(trace_skia_allowlist);
if (trace_skia_allowlist.size()) {
settings.trace_skia_allowlist = ParseCommaDelimited(trace_skia_allowlist);
} else {
settings.trace_skia_allowlist = {"skia.shaders"};
}
#endif // !FLUTTER_RELEASE
std::string trace_allowlist;
command_line.GetOptionValue(FlagForSwitch(Switch::TraceAllowlist),