Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Unified Diff: headless/app/headless_shell.cc

Issue 2187353003: headless: Support --use-gl in headless shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/BUILD.gn ('k') | headless/app/headless_shell_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/app/headless_shell.cc
diff --git a/headless/app/headless_shell.cc b/headless/app/headless_shell.cc
index f9e8e3f45d4ecc6292458fe1f135f797bb7b7c0a..a3e0b7435f6dbd5bc48bfba297f9df45501c68e8 100644
--- a/headless/app/headless_shell.cc
+++ b/headless/app/headless_shell.cc
@@ -334,6 +334,11 @@ int main(int argc, const char** argv) {
command_line.GetSwitchValueASCII(switches::kHostResolverRules));
}
+ if (command_line.HasSwitch(headless::switches::kUseGL)) {
+ builder.SetGLImplementation(
+ command_line.GetSwitchValueASCII(headless::switches::kUseGL));
+ }
+
return HeadlessBrowserMain(
builder.Build(),
base::Bind(&HeadlessShell::OnStart, base::Unretained(&shell)));
« no previous file with comments | « headless/BUILD.gn ('k') | headless/app/headless_shell_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698