summaryrefslogtreecommitdiffstats
path: root/opengl/libs/EGL
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-03-21 17:12:40 -0700
committerMathias Agopian <mathias@google.com>2013-03-21 17:12:40 -0700
commitcab25d680e644d962041d05a319e485b96136a5d (patch)
tree9ce3a3084a90a448bdb67270a1735686b3593d36 /opengl/libs/EGL
parent7c1a487ba8c0a3b591a77e2ddcb33ef9bdfaff64 (diff)
downloadframeworks_native-cab25d680e644d962041d05a319e485b96136a5d.tar.gz
frameworks_native-cab25d680e644d962041d05a319e485b96136a5d.tar.bz2
frameworks_native-cab25d680e644d962041d05a319e485b96136a5d.zip
improved CallStack a bit
- added a ctor that updates and dumps the stack immediately - added a "logtag" parameter to dump() Change-Id: Ie51c256071d282591752243bdb4f68cf9ff8829d
Diffstat (limited to 'opengl/libs/EGL')
-rw-r--r--opengl/libs/EGL/egl.cpp4
-rw-r--r--opengl/libs/EGL/egl_tls.cpp4
2 files changed, 2 insertions, 6 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp
index a8691b5c9..a6e91e0ea 100644
--- a/opengl/libs/EGL/egl.cpp
+++ b/opengl/libs/EGL/egl.cpp
@@ -222,9 +222,7 @@ static int gl_no_context() {
char value[PROPERTY_VALUE_MAX];
property_get("debug.egl.callstack", value, "0");
if (atoi(value)) {
- CallStack stack;
- stack.update();
- stack.dump();
+ CallStack stack(LOG_TAG);
}
}
return 0;
diff --git a/opengl/libs/EGL/egl_tls.cpp b/opengl/libs/EGL/egl_tls.cpp
index 41cfae1b6..52312a2b7 100644
--- a/opengl/libs/EGL/egl_tls.cpp
+++ b/opengl/libs/EGL/egl_tls.cpp
@@ -78,9 +78,7 @@ void egl_tls_t::setErrorEtcImpl(
char value[PROPERTY_VALUE_MAX];
property_get("debug.egl.callstack", value, "0");
if (atoi(value)) {
- CallStack stack;
- stack.update();
- stack.dump();
+ CallStack stack(LOG_TAG);
}
}
tls->error = error;