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

Unified Diff: ui/gl/generate_bindings.py

Issue 2472703003: Load the GL_KHR_debug entry points and log messages they produce. (Closed)
Patch Set: Update window system string Created 4 years, 1 month 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 | « third_party/khronos/GLES3/gl32.h ('k') | ui/gl/gl_bindings_api_autogen_gl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/generate_bindings.py
diff --git a/ui/gl/generate_bindings.py b/ui/gl/generate_bindings.py
index 50a801944f940a780e78c794993460c9e8becdf2..3640aac5475b995c92395bbe334f168e3bb196f8 100755
--- a/ui/gl/generate_bindings.py
+++ b/ui/gl/generate_bindings.py
@@ -319,6 +319,25 @@ GL_FUNCTIONS = [
'names': ['glCullFace'],
'arguments': 'GLenum mode', },
{ 'return_type': 'void',
+ 'versions': [{ 'name': 'glDebugMessageCallback' },
+ { 'name': 'glDebugMessageCallbackKHR',
+ 'extensions': ['GL_KHR_debug'] }],
+ 'arguments': 'GLDEBUGPROC callback, const void* userParam', },
+{ 'return_type': 'void',
+ 'versions': [{ 'name': 'glDebugMessageControl' },
+ { 'name': 'glDebugMessageControlKHR',
+ 'extensions': ['GL_KHR_debug'] }],
+ 'arguments':
+ 'GLenum source, GLenum type, GLenum severity, GLsizei count, '
+ 'const GLuint* ids, GLboolean enabled', },
+{ 'return_type': 'void',
+ 'versions': [{ 'name': 'glDebugMessageInsert' },
+ { 'name': 'glDebugMessageInsertKHR',
+ 'extensions': ['GL_KHR_debug'] }],
+ 'arguments':
+ 'GLenum source, GLenum type, GLuint id, GLenum severity, '
+ 'GLsizei length, const char* buf', },
+{ 'return_type': 'void',
'names': ['glDeleteBuffers'],
'known_as': 'glDeleteBuffersARB',
'arguments': 'GLsizei n, const GLuint* buffers', },
@@ -620,6 +639,13 @@ GL_FUNCTIONS = [
'arguments':
'GLenum target, GLenum pname, GLsizei bufSize, GLsizei* length, '
'void** params', },
+{ 'return_type': 'void',
+ 'versions': [{ 'name': 'glGetDebugMessageLog' },
+ { 'name': 'glGetDebugMessageLogKHR',
+ 'extensions': ['GL_KHR_debug'] }],
+ 'arguments':
+ 'GLuint count, GLsizei bufSize, GLenum* sources, GLenum* types, '
+ 'GLuint* ids, GLenum* severities, GLsizei* lengths, char* messageLog', },
{ 'return_type': 'GLenum',
'names': ['glGetError'],
'arguments': 'void',
@@ -738,6 +764,23 @@ GL_FUNCTIONS = [
'GLuint program, GLint location, GLsizei bufSize, GLsizei* length, '
'GLuint* params', },
{ 'return_type': 'void',
+ 'versions': [{ 'name': 'glGetObjectLabel' },
+ { 'name': 'glGetObjectLabelKHR',
+ 'extensions': ['GL_KHR_debug'] }],
+ 'arguments':
+ 'GLenum identifier, GLuint name, GLsizei bufSize, GLsizei* length, '
+ 'char* label', },
+{ 'return_type': 'void',
+ 'versions': [{ 'name': 'glGetObjectPtrLabel' },
+ { 'name': 'glGetObjectPtrLabelKHR',
+ 'extensions': ['GL_KHR_debug'] }],
+ 'arguments': 'void* ptr, GLsizei bufSize, GLsizei* length, char* label', },
+{ 'return_type': 'void',
+ 'versions': [{ 'name': 'glGetPointerv' },
+ { 'name': 'glGetPointervKHR',
+ 'extensions': ['GL_KHR_debug'] }],
+ 'arguments': 'GLenum pname, void** params', },
+{ 'return_type': 'void',
'versions': [{'name': 'glGetPointervRobustANGLERobustANGLE',
'extensions': ['GL_ANGLE_robust_client_memory']}],
'arguments':
@@ -1166,6 +1209,17 @@ GL_FUNCTIONS = [
'extensions': ['GL_EXT_shader_image_load_store'] }],
'arguments': 'GLbitfield barriers', },
{ 'return_type': 'void',
+ 'versions': [{ 'name': 'glObjectLabel' },
+ { 'name': 'glObjectLabelKHR',
+ 'extensions': ['GL_KHR_debug'] }],
+ 'arguments':
+ 'GLenum identifier, GLuint name, GLsizei length, const char* label', },
+{ 'return_type': 'void',
+ 'versions': [{ 'name': 'glObjectPtrLabel' },
+ { 'name': 'glObjectPtrLabelKHR',
+ 'extensions': ['GL_KHR_debug'] }],
+ 'arguments': 'void* ptr, GLsizei length, const char* label', },
+{ 'return_type': 'void',
'names': ['glPathCommandsNV'],
'arguments': 'GLuint path, GLsizei numCommands, const GLubyte* commands, '
'GLsizei numCoords, GLenum coordType, const GLvoid* coords' },
@@ -1192,6 +1246,11 @@ GL_FUNCTIONS = [
'names': ['glPolygonOffset'],
'arguments': 'GLfloat factor, GLfloat units', },
{ 'return_type': 'void',
+ 'versions': [{ 'name': 'glPopDebugGroup' },
+ { 'name': 'glPopDebugGroupKHR',
+ 'extensions': ['GL_KHR_debug'] }],
+ 'arguments': '', },
+{ 'return_type': 'void',
'names': ['glPopGroupMarkerEXT'],
'arguments': 'void', },
{ 'return_type': 'void',
@@ -1214,6 +1273,12 @@ GL_FUNCTIONS = [
'GLint components, const GLfloat* coeffs',
'is_optional': True, },
{ 'return_type': 'void',
+ 'versions': [{ 'name': 'glPushDebugGroup' },
+ { 'name': 'glPushDebugGroupKHR',
+ 'extensions': ['GL_KHR_debug'] }],
+ 'arguments':
+ 'GLenum source, GLuint id, GLsizei length, const char* message', },
+{ 'return_type': 'void',
'names': ['glPushGroupMarkerEXT'],
'arguments': 'GLsizei length, const char* marker', },
{ 'return_type': 'void',
@@ -2214,6 +2279,7 @@ FUNCTION_SETS = [
'GLES2/gl2ext.h',
'GLES3/gl3.h',
'GLES3/gl31.h',
+ 'GLES3/gl32.h',
# Files below are Chromium-specific and shipped with Chromium sources.
'GL/glextchromium.h',
'GLES2/gl2chromium.h',
@@ -2818,7 +2884,8 @@ void DriverEGL::InitializeExtensionBindings() {
'GLsizei': '0',
'GLfloat': '0.0f',
'GLdouble': '0.0',
- 'GLsync': 'NULL'}
+ 'GLsync': 'NULL',
+ 'GLDEBUGPROC': 'NULL'}
if return_type.endswith('*'):
file.write(' return NULL;\n')
elif return_type != 'void':
« no previous file with comments | « third_party/khronos/GLES3/gl32.h ('k') | ui/gl/gl_bindings_api_autogen_gl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698