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

Unified Diff: ui/gl/gl_implementation.h

Issue 2099163003: Revert of Move static GL binding initialization to //ui/gl/init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « ui/gl/gl_glx_api_implementation.h ('k') | ui/gl/gl_implementation_android.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 53e9600df1b6093146b5076361b7a27983ddda73..7b41771e5c1fe7150fcd3fd82fb9de11c4ed54fa 100644
--- a/ui/gl/gl_implementation.h
+++ b/ui/gl/gl_implementation.h
@@ -46,10 +46,16 @@
typedef void* (*GLGetProcAddressProc)(const char* name);
#endif
+// Initialize a particular GL implementation.
+GL_EXPORT bool InitializeStaticGLBindings(GLImplementation implementation);
+
// Initialize function bindings that depend on the context for a GL
// implementation.
GL_EXPORT bool InitializeDynamicGLBindings(GLImplementation implementation,
GLContext* context);
+
+// Initialize Debug logging wrappers for GL bindings.
+GL_EXPORT void InitializeDebugGLBindings();
// Initialize stub methods for drawing operations in the GL bindings. The
// null draw bindings default to enabled, so that draw operations do nothing.
@@ -76,6 +82,8 @@
bool initial_enabled_;
};
+GL_EXPORT void ClearGLBindings();
+
// Set the current GL implementation.
GL_EXPORT void SetGLImplementation(GLImplementation implementation);
@@ -93,10 +101,10 @@
GL_EXPORT const char* GetGLImplementationName(GLImplementation implementation);
// Add a native library to those searched for GL entry points.
-GL_EXPORT void AddGLNativeLibrary(base::NativeLibrary library);
+void AddGLNativeLibrary(base::NativeLibrary library);
// Unloads all native libraries.
-GL_EXPORT void UnloadGLNativeLibraries();
+void UnloadGLNativeLibraries();
// Set an additional function that will be called to find GL entry points.
// Exported so that tests may set the function used in the mock implementation.
@@ -109,7 +117,7 @@
// and when querying functions from the EGL library supplied by Android, it may
// return a function that prints a log message about the function being
// unsupported.
-GL_EXPORT void* GetGLProcAddress(const char* name);
+void* GetGLProcAddress(const char* name);
// Return information about the GL window system binding implementation (e.g.,
// EGL, GLX, WGL). Returns true if the information was retrieved successfully.
@@ -129,10 +137,9 @@
GL_EXPORT bool WillUseGLGetStringForExtensions();
// Helpers to load a library and log error on failure.
-GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError(
+base::NativeLibrary LoadLibraryAndPrintError(
const base::FilePath::CharType* filename);
-GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError(
- const base::FilePath& filename);
+base::NativeLibrary LoadLibraryAndPrintError(const base::FilePath& filename);
} // namespace gl
« no previous file with comments | « ui/gl/gl_glx_api_implementation.h ('k') | ui/gl/gl_implementation_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698