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

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: 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.cc
diff --git a/headless/public/headless_browser.cc b/headless/public/headless_browser.cc
index b1e5dbcc026ec701c2dab1ba3e5f6be04e990d45..3905ec0b4dc2694ff3b00009aed39d56716395a4 100644
--- a/headless/public/headless_browser.cc
+++ b/headless/public/headless_browser.cc
@@ -20,7 +20,8 @@ Options::Options(int argc, const char** argv)
argv(argv),
user_agent(content::BuildUserAgentFromProduct(kProductName)),
message_pump(nullptr),
- single_process_mode(false) {}
+ single_process_mode(false),
+ gl_implementation("osmesa") {}
Options::Options(Options&& options) = default;
@@ -69,6 +70,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_);
}
« headless/lib/headless_browser_browsertest.cc ('K') | « headless/public/headless_browser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698