summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Debug.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-01-21 21:14:15 -0800
committerRomain Guy <romainguy@google.com>2011-01-21 21:14:15 -0800
commitc9855a53edfac818dc68714557185977556f849d (patch)
tree7ace2dd62d887408e84f8a09c43e60de26b436b6 /libs/hwui/Debug.h
parent6828656220f4ed5ae803e4c11fb75fb56bc3ea25 (diff)
downloadframeworks_base-c9855a53edfac818dc68714557185977556f849d.zip
frameworks_base-c9855a53edfac818dc68714557185977556f849d.tar.gz
frameworks_base-c9855a53edfac818dc68714557185977556f849d.tar.bz2
Log only 1 line per process when using OpenGLRenderer.
Change-Id: Idbdd6b84f31301e58ed53e0d50fd61fece192dfa
Diffstat (limited to 'libs/hwui/Debug.h')
-rw-r--r--libs/hwui/Debug.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/hwui/Debug.h b/libs/hwui/Debug.h
index 6236684..14471bc 100644
--- a/libs/hwui/Debug.h
+++ b/libs/hwui/Debug.h
@@ -20,6 +20,9 @@
// Turn on to check for OpenGL errors on each frame
#define DEBUG_OPENGL 1
+// Turn on to enable initialization information
+#define DEBUG_INIT 0
+
// Turn on to enable memory usage summary on each frame
#define DEBUG_MEMORY_USAGE 0
@@ -54,4 +57,10 @@
// Turn on to dump display list state
#define DEBUG_DISPLAY_LIST 0
+#if DEBUG_INIT
+ #define INIT_LOGD(...) LOGD(__VA_ARGS__)
+#else
+ #define INIT_LOGD(...)
+#endif
+
#endif // ANDROID_HWUI_DEBUG_H