summaryrefslogtreecommitdiffstats
path: root/ui/gl/generate_bindings.py
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-16 21:30:09 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-16 21:30:09 +0000
commit37320544f974ca0a9de2b1f3d3103a848ad02397 (patch)
tree981ef9fa8ef5c6459d0ce48edaebe875e4726297 /ui/gl/generate_bindings.py
parente932042765f4c4b637af1c789223eb3838fd6aee (diff)
downloadchromium_src-37320544f974ca0a9de2b1f3d3103a848ad02397.zip
chromium_src-37320544f974ca0a9de2b1f3d3103a848ad02397.tar.gz
chromium_src-37320544f974ca0a9de2b1f3d3103a848ad02397.tar.bz2
Refactor GPU tracing to generate less code.
The macros expanded to lots of code and added 100k to the executable. Hopefully this will bring that down. BUG=176383 Review URL: https://chromiumcodereview.appspot.com/12230050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183004 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl/generate_bindings.py')
-rwxr-xr-xui/gl/generate_bindings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gl/generate_bindings.py b/ui/gl/generate_bindings.py
index 8818c87..16f8998 100755
--- a/ui/gl/generate_bindings.py
+++ b/ui/gl/generate_bindings.py
@@ -1549,7 +1549,8 @@ namespace gfx {
if argument_names == 'void' or argument_names == '':
argument_names = ''
function_name = names[0]
- file.write(' TRACE_EVENT0("gpu", "TraceGLAPI::%s")\n' % function_name)
+ file.write(' TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::%s")\n' %
+ function_name)
if return_type == 'void':
file.write(' %s_api_->%sFn(%s);\n' %
(set_name.lower(), function_name, argument_names))