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

Unified Diff: ui/gl/gl_implementation.h

Issue 1946873005: Move LoadLibraryAndPrintError helpers to common gl_implementation.h/.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and use base::FilePath::CharType to fix build failure on win os 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
« no previous file with comments | « no previous file | ui/gl/gl_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_implementation.h
diff --git a/ui/gl/gl_implementation.h b/ui/gl/gl_implementation.h
index eab70dc35989579cc2d56998024fc568c0d222ab..502daeefbd82ae874294f5332e9d8c8dc53f4d74 100644
--- a/ui/gl/gl_implementation.h
+++ b/ui/gl/gl_implementation.h
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "base/files/file_path.h"
#include "base/native_library.h"
#include "build/build_config.h"
#include "ui/gl/gl_export.h"
@@ -135,6 +136,11 @@ GL_EXPORT std::string GetGLExtensionsFromCurrentContext();
// be used in the function above.
GL_EXPORT bool WillUseGLGetStringForExtensions();
+// Helpers to load a library and log error on failure.
+base::NativeLibrary LoadLibraryAndPrintError(
+ const base::FilePath::CharType* filename);
+base::NativeLibrary LoadLibraryAndPrintError(const base::FilePath& filename);
+
} // namespace gfx
#endif // UI_GL_GL_IMPLEMENTATION_H_
« no previous file with comments | « no previous file | ui/gl/gl_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698