OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
764c197
)
gltrace: Make sure device is debuggable.
author
Siva Velusamy
<vsiva@google.com>
Tue, 20 Nov 2012 21:39:57 +0000
(13:39 -0800)
committer
Siva Velusamy
<vsiva@google.com>
Tue, 20 Nov 2012 23:55:35 +0000
(15:55 -0800)
(cherry picked from commit
6482fa4db0a7ac99cd3503d6bf170f80b26fb695
)
Change-Id: I205aabcab1932025c12e7ba3d1b3cf94684f6758
opengl/libs/EGL/egl.cpp
patch
|
blob
|
history
diff --git
a/opengl/libs/EGL/egl.cpp
b/opengl/libs/EGL/egl.cpp
index
96e1cba
..
0d4bed5
100644
(file)
--- a/
opengl/libs/EGL/egl.cpp
+++ b/
opengl/libs/EGL/egl.cpp
@@
-124,6
+124,12
@@
void initEglTraceLevel() {
void initEglDebugLevel() {
int propertyLevel = 0;
char value[PROPERTY_VALUE_MAX];
+
+ // check system property only on userdebug or eng builds
+ property_get("ro.debuggable", value, "0");
+ if (value[0] == '0')
+ return;
+
property_get("debug.egl.debug_proc", value, "");
if (strlen(value) > 0) {
long pid = getpid();