| Index: headless/public/headless_browser.cc
|
| diff --git a/headless/public/headless_browser.cc b/headless/public/headless_browser.cc
|
| index 78c1f56cc4551913ab40d1dc6d91c7b49b6dce54..bbc644b231cf9e37499e42661f8708a51aaa6cd8 100644
|
| --- a/headless/public/headless_browser.cc
|
| +++ b/headless/public/headless_browser.cc
|
| @@ -21,7 +21,8 @@ Options::Options(int argc, const char** argv)
|
| user_agent(content::BuildUserAgentFromProduct(kProductName)),
|
| message_pump(nullptr),
|
| single_process_mode(false),
|
| - disable_sandbox(false) {}
|
| + disable_sandbox(false),
|
| + gl_implementation("osmesa") {}
|
|
|
| Options::Options(Options&& options) = default;
|
|
|
| @@ -75,6 +76,11 @@ Builder& Builder::SetProtocolHandlers(ProtocolHandlerMap protocol_handlers) {
|
| return *this;
|
| }
|
|
|
| +Builder& Builder::SetGLImplementation(const std::string& gl_implementation) {
|
| + options_.gl_implementation = gl_implementation;
|
| + return *this;
|
| +}
|
| +
|
| Options Builder::Build() {
|
| return std::move(options_);
|
| }
|
|
|