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

Unified Diff: headless/public/headless_browser.cc

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/public/headless_browser.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
}
« no previous file with comments | « headless/public/headless_browser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698