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

Unified Diff: headless/public/headless_browser.h

Issue 2184763002: headless: Enable GL support by default (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
Index: headless/public/headless_browser.h
diff --git a/headless/public/headless_browser.h b/headless/public/headless_browser.h
index b98a40acd866820ba10df3fff87d1adaf9ec95f7..e0c91fa05e4c304652a68662a1cf83854268d716 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -117,6 +117,11 @@ struct HeadlessBrowser::Options {
// fetching for different network schemes.
ProtocolHandlerMap protocol_handlers;
+ // Choose the GL implementation to use for rendering. A suitable
+ // implementantion is selected by default. Setting this to an empty
+ // string can be used to disable GL rendering (e.g., WebGL support).
+ std::string gl_implementation;
+
private:
Options(int argc, const char** argv);
@@ -136,6 +141,7 @@ class HeadlessBrowser::Options::Builder {
Builder& SetHostResolverRules(const std::string& host_resolver_rules);
Builder& SetSingleProcessMode(bool single_process_mode);
Builder& SetProtocolHandlers(ProtocolHandlerMap protocol_handlers);
+ Builder& SetGLImplementation(const std::string& gl_implementation);
Options Build();

Powered by Google App Engine
This is Rietveld 408576698