| 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();
|
|
|
|
|