5 eDebugDefault
= 0x00000001,
6 eDebugWindowUpdate
= 0x00000002,
7 eDebugWinConfig
= 0x00000004,
8 eDebugSkipStaicLayer
= 0x00000008,
9 eDebugOverlaySupported
= 0x00000010,
10 eDebugResourceAssigning
= 0x00000020,
11 eDebugFence
= 0x00000040,
12 eDebugResourceManager
= 0x00000080,
13 eDebugMPP
= 0x00000100,
16 inline bool hwcCheckDebugMessages(uint32_t type
)
18 return hwcDebug
& type
;
21 #if defined(DISABLE_HWC_DEBUG)
22 #define HDEBUGLOGD(...)
23 #define HDEBUGLOGV(...)
24 #define HDEBUGLOGE(...)
26 #define HDEBUGLOGD(type, ...) \
27 if (hwcCheckDebugMessages(type)) \
29 #define HDEBUGLOGV(type, ...) \
30 if (hwcCheckDebugMessages(type)) \
32 #define HDEBUGLOGE(type, ...) \
33 if (hwcCheckDebugMessages(type)) \
37 #if defined(DISABLE_HWC_DEBUG)
38 #define DISPLAY_LOGD(...)
40 #define DISPLAY_LOGD(type, msg, ...) \
41 if (hwcCheckDebugMessages(type)) \
42 ALOGD("[%s] " msg, mDisplayName.string(), ##__VA_ARGS__)
44 #define DISPLAY_LOGV(msg, ...) ALOGV("[%s] " msg, mDisplayName.string(), ##__VA_ARGS__)
45 #define DISPLAY_LOGI(msg, ...) ALOGI("[%s] " msg, mDisplayName.string(), ##__VA_ARGS__)
46 #define DISPLAY_LOGW(msg, ...) ALOGW("[%s] " msg, mDisplayName.string(), ##__VA_ARGS__)
47 #define DISPLAY_LOGE(msg, ...) ALOGE("[%s] " msg, mDisplayName.string(), ##__VA_ARGS__)