OSDN Git Service

Add runtime debugging capabilities to OpenGL
authorRomain Guy <romainguy@google.com>
Thu, 18 Oct 2012 23:16:10 +0000 (16:16 -0700)
committerRomain Guy <romainguy@google.com>
Thu, 18 Oct 2012 23:16:10 +0000 (16:16 -0700)
commit16928bfeca8858a0acae6942fc68c14a040b92ff
tree6c262da307c7417170f4d547401cdc475bbd3974
parent7f79a2bd5c92bc626890dc16ffb8cd2de934e5fb
Add runtime debugging capabilities to OpenGL

The shell property debug.egl.trace can now be set to:

0
  disables tracing
1
  logs all GL calls
error
  checks glGetError after every GL call, logs a stack trace on error
systrace
  logs each GL call to systrace

Change-Id: I34a2a2d4e19c373fd9eaa1b0cd93e67c87378996
include/utils/Trace.h
opengl/libs/EGL/egl.cpp
opengl/libs/EGL/trace.cpp
opengl/libs/GLES2/gl2.cpp