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

Unified Diff: ui/gl/generate_bindings.py

Issue 11973003: Move code around to fix build with system mesa. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/DEPS ('k') | ui/gl/gl_context_glx.cc » ('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 0ac28f7219092452691dd97e1cfb9c1ee328183c..478f7b909300f81da94aa8f5b351aba822db854b 100755
--- a/ui/gl/generate_bindings.py
+++ b/ui/gl/generate_bindings.py
@@ -1152,11 +1152,16 @@ FUNCTION_SETS = [
'GL/glext.h',
'GLES2/gl2ext.h',
# Files below are Chromium-specific and shipped with Chromium sources.
+ 'GL/glextchromium.h',
'GLES2/gl2chromium.h',
'GLES2/gl2extchromium.h'
], []],
[OSMESA_FUNCTIONS, 'osmesa', [], []],
- [EGL_FUNCTIONS, 'egl', ['EGL/eglext.h'],
+ [EGL_FUNCTIONS, 'egl', [
+ 'EGL/eglext.h',
+ # Files below are Chromium-specific and shipped with Chromium sources.
+ 'EGL/eglextchromium.h',
+ ],
[
'EGL_ANGLE_d3d_share_handle_client_buffer',
'EGL_ANGLE_surface_d3d_texture_2d_share_handle',
@@ -1593,7 +1598,8 @@ def ParseExtensionFunctionsFromHeader(header_file):
Returns:
Map of extension name => functions.
"""
- extension_start = re.compile(r'#define ([A-Z]+_[A-Z]+_[a-zA-Z]\w+) 1')
+ extension_start = re.compile(
+ r'#ifndef ((?:GL|EGL|WGL|GLX)_[A-Z]+_[a-zA-Z]\w+)')
extension_function = re.compile(r'.+\s+([a-z]+\w+)\s*\(')
typedef = re.compile(r'typedef .*')
macro_start = re.compile(r'^#(if|ifdef|ifndef).*')
« no previous file with comments | « ui/gl/DEPS ('k') | ui/gl/gl_context_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698