| Index: ui/gl/gl_implementation.cc
|
| diff --git a/ui/gl/gl_implementation.cc b/ui/gl/gl_implementation.cc
|
| index 9c9289f17a80dd9d28725f1dae67fa70ab506ffc..4951de06fdaa08e13b037f364d2084e6e3aa7cc5 100644
|
| --- a/ui/gl/gl_implementation.cc
|
| +++ b/ui/gl/gl_implementation.cc
|
| @@ -212,4 +212,20 @@ bool WillUseGLGetStringForExtensions() {
|
| return is_es || major_version < 3;
|
| }
|
|
|
| +base::NativeLibrary LoadLibraryAndPrintError(
|
| + const base::FilePath::CharType* filename) {
|
| + return LoadLibraryAndPrintError(base::FilePath(filename));
|
| +}
|
| +
|
| +base::NativeLibrary LoadLibraryAndPrintError(const base::FilePath& filename) {
|
| + base::NativeLibraryLoadError error;
|
| + base::NativeLibrary library = base::LoadNativeLibrary(filename, &error);
|
| + if (!library) {
|
| + LOG(ERROR) << "Failed to load " << filename.MaybeAsASCII() << ": "
|
| + << error.ToString();
|
| + return NULL;
|
| + }
|
| + return library;
|
| +}
|
| +
|
| } // namespace gfx
|
|
|