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

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: Rebased and reformatted 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/lib/headless_content_main_delegate.cc ('k') | headless/public/headless_browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/headless_browser.h
diff --git a/headless/public/headless_browser.h b/headless/public/headless_browser.h
index 90635905f3e6818d1a03d2c74eaf0c4cb887194f..0393f7c1125f04ccc66bf66fbbec69d296becdce 100644
--- a/headless/public/headless_browser.h
+++ b/headless/public/headless_browser.h
@@ -121,6 +121,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);
@@ -141,6 +146,7 @@ class HeadlessBrowser::Options::Builder {
Builder& SetSingleProcessMode(bool single_process_mode);
Builder& SetDisableSandbox(bool disable_sandbox);
Builder& SetProtocolHandlers(ProtocolHandlerMap protocol_handlers);
+ Builder& SetGLImplementation(const std::string& gl_implementation);
Options Build();
« no previous file with comments | « headless/lib/headless_content_main_delegate.cc ('k') | headless/public/headless_browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698