diff options
Diffstat (limited to 'libhwc2.1/ExynosHWCDebug.h')
-rw-r--r-- | libhwc2.1/ExynosHWCDebug.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libhwc2.1/ExynosHWCDebug.h b/libhwc2.1/ExynosHWCDebug.h index 37d96fd..8bc6092 100644 --- a/libhwc2.1/ExynosHWCDebug.h +++ b/libhwc2.1/ExynosHWCDebug.h @@ -166,4 +166,12 @@ public: value); \ } +#define DISPLAY_LOGD_AND_ATRACE_NAME(debugFlag, fmt, ...) \ + if (hwcCheckDebugMessages(debugFlag) || CC_UNLIKELY(ATRACE_ENABLED())) { \ + String8 log; \ + log.appendFormat((fmt), ##__VA_ARGS__); \ + DISPLAY_LOGD(debugFlag, "%s", log.string()); \ + if (CC_UNLIKELY(ATRACE_ENABLED())) ATRACE_NAME(log.string()); \ + } + #endif |