Merge "gltrace: flush trace buffer on createContext & makeCurrent" into jb-mr1-dev

This commit is contained in:
Siva Velusamy 2012-08-16 16:26:59 -07:00 committed by Android (Google) Code Review
commit c21fc05af7

View File

@ -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();