diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-14 20:06:57 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-14 20:06:57 +0000 |
commit | 87ad26d05ee0e7b31211e6e9b0c06d6dd62c086a (patch) | |
tree | 0f9fe2342769c8072ca29651d6cb97bb5f195600 /ui/gfx/gl/generate_bindings.py | |
parent | de059efb30d6ae2f62f2dbd10d1550b56f30a433 (diff) | |
download | chromium_src-87ad26d05ee0e7b31211e6e9b0c06d6dd62c086a.zip chromium_src-87ad26d05ee0e7b31211e6e9b0c06d6dd62c086a.tar.gz chromium_src-87ad26d05ee0e7b31211e6e9b0c06d6dd62c086a.tar.bz2 |
Add lots of client side OpenGL logging.
TEST=ran chrome, ran OpenGL ES 2.0 conformance tests
BUG=none
R=apatrick@chromium.org
Review URL: http://codereview.chromium.org/7003103
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89054 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/gl/generate_bindings.py')
-rw-r--r-- | ui/gfx/gl/generate_bindings.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/ui/gfx/gl/generate_bindings.py b/ui/gfx/gl/generate_bindings.py index f6149bb..99a93c46 100644 --- a/ui/gfx/gl/generate_bindings.py +++ b/ui/gfx/gl/generate_bindings.py @@ -524,11 +524,21 @@ def GenerateSource(file, functions, set_name): file.write('\n') file.write('static %s GL_BINDING_CALL Debug_%s(%s) {\n' % (return_type, names[0], arguments)) - argument_names = re.sub(r'(const )?[a-zA-Z0-9]+\** ([a-zA-Z0-9]+)', r'\2', + argument_names = re.sub(r'(const )?[a-zA-Z0-9_]+\** ([a-zA-Z0-9_]+)', r'\2', arguments) - argument_names = re.sub(r'(const )?[a-zA-Z0-9]+\** ([a-zA-Z0-9]+)', r'\2', + argument_names = re.sub(r'(const )?[a-zA-Z0-9_]+\** ([a-zA-Z0-9_]+)', r'\2', argument_names) - log_argument_names = argument_names.replace(',', ' << ", " <<'); + log_argument_names = re.sub( + r'(const )?[a-zA-Z0-9_]+\* ([a-zA-Z0-9_]+)', + r'CONSTVOID_\2', arguments) + log_argument_names = re.sub( + r'(const )?[a-zA-Z0-9_]+\** ([a-zA-Z0-9_]+)', r'\2', log_argument_names) + log_argument_names = re.sub( + r'(const )?[a-zA-Z0-9_]+\** ([a-zA-Z0-9_]+)', r'\2', log_argument_names) + log_argument_names = re.sub( + r'CONSTVOID_([a-zA-Z0-9_]+)', + r'static_cast<const void*>(\1)', log_argument_names); + log_argument_names = log_argument_names.replace(',', ' << ", " <<'); if argument_names == 'void' or argument_names == '': argument_names = '' log_argument_names = '' |