summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL/egl.cpp
diff options
context:
space:
mode:
authorDavid Li <davidxli@google.com>2011-03-10 19:07:42 -0800
committerDavid Li <davidxli@google.com>2011-03-11 11:09:09 -0800
commit940c3f8b3605a2ea8c4bdd4607eff67db2e00cfc (patch)
tree84e0ba9b4497eff052cd10c9239a7cd7e9adcf47 /opengl/libs/EGL/egl.cpp
parent08758fad846ed01045246bb0b87e038fc5d90793 (diff)
downloadframeworks_base-940c3f8b3605a2ea8c4bdd4607eff67db2e00cfc.zip
frameworks_base-940c3f8b3605a2ea8c4bdd4607eff67db2e00cfc.tar.gz
frameworks_base-940c3f8b3605a2ea8c4bdd4607eff67db2e00cfc.tar.bz2
GLES2Debugger: Make command exchange async to improve performance.
In message loop, use select to check for available commands from client, rather than always expecting commands in eglSwapBuffers. Change-Id: Ifc34dd77c2528c8b9c71f594e3eda4f93400cd2b Signed-off-by: David Li <davidxli@google.com>
Diffstat (limited to 'opengl/libs/EGL/egl.cpp')
-rw-r--r--opengl/libs/EGL/egl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp
index 861d7ac..4d80075 100644
--- a/opengl/libs/EGL/egl.cpp
+++ b/opengl/libs/EGL/egl.cpp
@@ -340,7 +340,10 @@ static void initEglTraceLevel() {
}
if (gEGLDebugLevel > 0)
- StartDebugServer();
+ {
+ property_get("debug.egl.debug_port", value, "5039");
+ StartDebugServer(atoi(value));
+ }
}
static void setGLHooksThreadSpecific(gl_hooks_t const *value) {
@@ -350,7 +353,6 @@ static void setGLHooksThreadSpecific(gl_hooks_t const *value) {
} else if (gEGLDebugLevel > 0 && value != &gHooksNoContext) {
setGlTraceThreadSpecific(value);
setGlThreadSpecific(&gHooksDebug);
- LOGD("\n* setGLHooksThreadSpecific gHooksDebug");
} else {
setGlThreadSpecific(value);
}