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

Unified Diff: ui/gl/gl_bindings.h

Issue 94963003: Take GL version and extensions correctly into account when binding functions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Improve Windows initialization and renderBufferMultisample explanation Created 7 years 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.gyp ('k') | ui/gl/gl_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_bindings.h
diff --git a/ui/gl/gl_bindings.h b/ui/gl/gl_bindings.h
index debb0748046bdc3ae4ce1d375b671869a708c164..8f08366ec1baa26232493839b74429495f6a6343 100644
--- a/ui/gl/gl_bindings.h
+++ b/ui/gl/gl_bindings.h
@@ -225,11 +225,10 @@ typedef uint64 EGLuint64CHROMIUM;
namespace gfx {
struct GL_EXPORT DriverGL {
- void Initialize();
- void InitializeExtensions(GLContext* context);
+ void InitializeStaticBindings();
+ void InitializeCustomDynamicBindings(GLContext* context);
void InitializeDebugBindings();
void ClearBindings();
- void UpdateDebugExtensionBindings();
ProcsGL fn;
ProcsGL orig_fn;
@@ -237,16 +236,14 @@ struct GL_EXPORT DriverGL {
ExtensionsGL ext;
private:
- void InitializeBindings();
- void InitializeExtensionBindings(GLContext* context);
+ void InitializeDynamicBindings(GLContext* context);
};
struct GL_EXPORT DriverOSMESA {
- void InitializeBindings();
- void InitializeExtensionBindings(GLContext* context);
+ void InitializeStaticBindings();
+ void InitializeDynamicBindings(GLContext* context);
void InitializeDebugBindings();
void ClearBindings();
- void UpdateDebugExtensionBindings();
ProcsOSMESA fn;
ProcsOSMESA debug_fn;
@@ -255,11 +252,10 @@ struct GL_EXPORT DriverOSMESA {
#if defined(OS_WIN)
struct GL_EXPORT DriverWGL {
- void InitializeBindings();
- void InitializeExtensionBindings(GLContext* context);
+ void InitializeStaticBindings();
+ void InitializeDynamicBindings(GLContext* context);
void InitializeDebugBindings();
void ClearBindings();
- void UpdateDebugExtensionBindings();
ProcsWGL fn;
ProcsWGL debug_fn;
@@ -269,11 +265,10 @@ struct GL_EXPORT DriverWGL {
#if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || defined(USE_OZONE)
struct GL_EXPORT DriverEGL {
- void InitializeBindings();
- void InitializeExtensionBindings(GLContext* context);
+ void InitializeStaticBindings();
+ void InitializeDynamicBindings(GLContext* context);
void InitializeDebugBindings();
void ClearBindings();
- void UpdateDebugExtensionBindings();
ProcsEGL fn;
ProcsEGL debug_fn;
@@ -283,11 +278,10 @@ struct GL_EXPORT DriverEGL {
#if defined(USE_X11)
struct GL_EXPORT DriverGLX {
- void InitializeBindings();
- void InitializeExtensionBindings(GLContext* context);
+ void InitializeStaticBindings();
+ void InitializeDynamicBindings(GLContext* context);
void InitializeDebugBindings();
void ClearBindings();
- void UpdateDebugExtensionBindings();
ProcsGLX fn;
ProcsGLX debug_fn;
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698