summaryrefslogtreecommitdiffstats
path: root/opengl/libs/GLES_trace/tools/genapi.py
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2011-12-14 12:19:56 -0800
committerSiva Velusamy <vsiva@google.com>2012-01-04 11:38:37 -0800
commit93a826f78f6313db791e6fc880439189897651b3 (patch)
treeb760950d268a3c28ad7d803adfef55d9d68e5a3e /opengl/libs/GLES_trace/tools/genapi.py
parent59511ad1cbdb13509f5c249a5193e0180e0dbf0c (diff)
downloadframeworks_native-93a826f78f6313db791e6fc880439189897651b3.zip
frameworks_native-93a826f78f6313db791e6fc880439189897651b3.tar.gz
frameworks_native-93a826f78f6313db791e6fc880439189897651b3.tar.bz2
gltrace: transport buffering and context management
This patch adds two improvements: 1. Protobuf messages are buffered and sent in chunks. 2. Multiple EGL contexts are handled properly: Corresponding to each EGLContext, a GLTraceContext with a unique ID is created. On eglMakeCurrent, the appropriate GLTraceContext is set and is used while tracing subsequent GL Calls in that thread. Change-Id: I34076376d3e5af205c87c7396ea47659844abd6e
Diffstat (limited to 'opengl/libs/GLES_trace/tools/genapi.py')
-rwxr-xr-xopengl/libs/GLES_trace/tools/genapi.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/opengl/libs/GLES_trace/tools/genapi.py b/opengl/libs/GLES_trace/tools/genapi.py
index 3c47a5f..ee639f6 100755
--- a/opengl/libs/GLES_trace/tools/genapi.py
+++ b/opengl/libs/GLES_trace/tools/genapi.py
@@ -146,7 +146,6 @@ TRACE_CALL_TEMPLATE = pyratemp.Template(
GLMessage glmsg;
GLTraceContext *glContext = getGLTraceContext();
- glmsg.set_context_id(1);
glmsg.set_function(GLMessage::$!func!$);
<!--(if len(parsedArgs) > 0)-->
<!--(for argname, argtype in parsedArgs)-->
@@ -174,8 +173,8 @@ TRACE_CALL_TEMPLATE = pyratemp.Template(
rt->$!retDataType.getProtobufCall()!$retValue);
<!--(end)-->
- fixupGLMessage(&glmsg);
- traceGLMessage(&glmsg);
+ fixupGLMessage(glContext, &glmsg);
+ glContext->traceGLMessage(&glmsg);
<!--(if retType != "void")-->
return retValue;