summaryrefslogtreecommitdiffstats
path: root/opengl/libs/glestrace.h
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/glestrace.h
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/glestrace.h')
-rw-r--r--opengl/libs/glestrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libs/glestrace.h b/opengl/libs/glestrace.h
index 5cfacd4..a08f97b 100644
--- a/opengl/libs/glestrace.h
+++ b/opengl/libs/glestrace.h
@@ -25,7 +25,7 @@ namespace android {
/* Hooks to be called by "interesting" EGL functions. */
void GLTrace_eglCreateContext(int version, EGLContext c);
-void GLTrace_eglMakeCurrent(unsigned version, gl_hooks_t *hooks);
+void GLTrace_eglMakeCurrent(unsigned version, gl_hooks_t *hooks, EGLContext c);
void GLTrace_eglReleaseThread();
void GLTrace_eglSwapBuffers(void*, void*);