From 1e81e710fc6e676a43c0582abd9b802bc8bda175 Mon Sep 17 00:00:00 2001 From: Siva Velusamy Date: Wed, 14 Dec 2011 12:19:56 -0800 Subject: 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 --- opengl/libs/glestrace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opengl/libs/glestrace.h') diff --git a/opengl/libs/glestrace.h b/opengl/libs/glestrace.h index 5cfacd4bb2e9..a08f97bfb28d 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*); -- cgit v1.2.3-59-g8ed1b