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

Side by Side 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, 4 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 unified diff | Download patch
« no previous file with comments | « headless/BUILD.gn ('k') | headless/app/headless_shell_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <iostream> 5 #include <iostream>
6 #include <memory> 6 #include <memory>
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 return EXIT_FAILURE; 327 return EXIT_FAILURE;
328 } 328 }
329 builder.SetProxyServer(parsed_proxy_server); 329 builder.SetProxyServer(parsed_proxy_server);
330 } 330 }
331 331
332 if (command_line.HasSwitch(switches::kHostResolverRules)) { 332 if (command_line.HasSwitch(switches::kHostResolverRules)) {
333 builder.SetHostResolverRules( 333 builder.SetHostResolverRules(
334 command_line.GetSwitchValueASCII(switches::kHostResolverRules)); 334 command_line.GetSwitchValueASCII(switches::kHostResolverRules));
335 } 335 }
336 336
337 if (command_line.HasSwitch(headless::switches::kUseGL)) {
338 builder.SetGLImplementation(
339 command_line.GetSwitchValueASCII(headless::switches::kUseGL));
340 }
341
337 return HeadlessBrowserMain( 342 return HeadlessBrowserMain(
338 builder.Build(), 343 builder.Build(),
339 base::Bind(&HeadlessShell::OnStart, base::Unretained(&shell))); 344 base::Bind(&HeadlessShell::OnStart, base::Unretained(&shell)));
340 } 345 }
OLDNEW
« 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