summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2012-08-16 14:41:20 -0700
committerSiva Velusamy <vsiva@google.com>2012-08-16 14:41:20 -0700
commitad9693f4f0586d18a82fdbb70c6a89e43d662ff1 (patch)
tree0a17d55a2b5f72300c2fa06a562ec97768b75bc3 /opengl
parentf0083bf5288e0d430b0dc5cbc4b4852bce2ff1af (diff)
downloadframeworks_native-ad9693f4f0586d18a82fdbb70c6a89e43d662ff1.zip
frameworks_native-ad9693f4f0586d18a82fdbb70c6a89e43d662ff1.tar.gz
frameworks_native-ad9693f4f0586d18a82fdbb70c6a89e43d662ff1.tar.bz2
gltrace: flush trace buffer on createContext & makeCurrent
Certain apps (e.g. chrome) seem to create contexts which are unused for long periods of time. If tracing is stopped before those contexts are used, then the debugger never gets to know that these contexts were created. Flushing the trace after these calls ensures that the debugger knows about all created/used contexts. Change-Id: I01baa11aa56ac89eddce3c2851e4bf01076984d1
Diffstat (limited to 'opengl')
-rw-r--r--opengl/libs/GLES_trace/src/gltrace_context.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/opengl/libs/GLES_trace/src/gltrace_context.cpp b/opengl/libs/GLES_trace/src/gltrace_context.cpp
index 91b291e..3a8decc 100644
--- a/opengl/libs/GLES_trace/src/gltrace_context.cpp
+++ b/opengl/libs/GLES_trace/src/gltrace_context.cpp
@@ -209,6 +209,8 @@ void GLTraceContext::traceGLMessage(GLMessage *msg) {
GLMessage_Function func = msg->function();
if (func == GLMessage::eglSwapBuffers
+ || func == GLMessage::eglCreateContext
+ || func == GLMessage::eglMakeCurrent
|| func == GLMessage::glDrawArrays
|| func == GLMessage::glDrawElements) {
mBufferedOutputStream->flush();