Loading opengl/libs/EGL/egl.cpp +7 −4 Original line number Diff line number Diff line Loading @@ -148,11 +148,14 @@ static int gl_no_context() { if (egl_tls_t::logNoContextCall()) { LOGE("call to OpenGL ES API with no current context " "(logged once per thread)"); LOGE("call stack before error:"); char value[PROPERTY_VALUE_MAX]; property_get("debug.egl.callstack", value, "0"); if (atoi(value)) { CallStack stack; stack.update(); stack.dump(); } } return 0; } Loading opengl/libs/EGL/egl_tls.cpp +11 −0 Original line number Diff line number Diff line Loading @@ -14,9 +14,13 @@ ** limitations under the License. */ #include <stdlib.h> #include <pthread.h> #include <cutils/log.h> #include <cutils/properties.h> #include <utils/CallStack.h> #include <EGL/egl.h> Loading Loading @@ -69,6 +73,13 @@ void egl_tls_t::setErrorEtcImpl(const char* caller, int line, EGLint error) { if (tls->error != error) { LOGE("%s:%d error %x (%s)", caller, line, error, egl_strerror(error)); tls->error = error; char value[PROPERTY_VALUE_MAX]; property_get("debug.egl.callstack", value, "0"); if (atoi(value)) { CallStack stack; stack.update(); stack.dump(); } } } Loading Loading
opengl/libs/EGL/egl.cpp +7 −4 Original line number Diff line number Diff line Loading @@ -148,11 +148,14 @@ static int gl_no_context() { if (egl_tls_t::logNoContextCall()) { LOGE("call to OpenGL ES API with no current context " "(logged once per thread)"); LOGE("call stack before error:"); char value[PROPERTY_VALUE_MAX]; property_get("debug.egl.callstack", value, "0"); if (atoi(value)) { CallStack stack; stack.update(); stack.dump(); } } return 0; } Loading
opengl/libs/EGL/egl_tls.cpp +11 −0 Original line number Diff line number Diff line Loading @@ -14,9 +14,13 @@ ** limitations under the License. */ #include <stdlib.h> #include <pthread.h> #include <cutils/log.h> #include <cutils/properties.h> #include <utils/CallStack.h> #include <EGL/egl.h> Loading Loading @@ -69,6 +73,13 @@ void egl_tls_t::setErrorEtcImpl(const char* caller, int line, EGLint error) { if (tls->error != error) { LOGE("%s:%d error %x (%s)", caller, line, error, egl_strerror(error)); tls->error = error; char value[PROPERTY_VALUE_MAX]; property_get("debug.egl.callstack", value, "0"); if (atoi(value)) { CallStack stack; stack.update(); stack.dump(); } } } Loading