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

Unified Diff: ui/gl/gl_implementation_x11.cc

Issue 1542013005: Add a new driver bug workaround SANDBOX_START_EARLY Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just rebase Created 4 years, 7 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: ui/gl/gl_implementation_x11.cc
diff --git a/ui/gl/gl_implementation_x11.cc b/ui/gl/gl_implementation_x11.cc
index 682f9f9b6d55a1d58bdc71260c6be9e98177397f..2f9f4578ab1fd48d48c07ec05d76c1e01a566958 100644
--- a/ui/gl/gl_implementation_x11.cc
+++ b/ui/gl/gl_implementation_x11.cc
@@ -218,4 +218,26 @@ bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) {
return false;
}
+bool GetNativeLibraryNamesFromGLImplementation(
+ GLImplementation implementation,
+ std::vector<std::string>* required_libraries) {
+ DCHECK(required_libraries);
+ required_libraries->clear();
+
+ switch (implementation) {
+ case kGLImplementationDesktopGL:
+ required_libraries->push_back(kGLLibraryName);
+ break;
+ case kGLImplementationEGLGLES2: {
+ required_libraries->push_back(kGLESv2LibraryName);
+ required_libraries->push_back(kEGLLibraryName);
+ break;
+ }
+ default:
+ return false;
+ }
+
+ return true;
+}
+
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698