| 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
|
|
|