mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug 915077 - Change the debug log level of HWC, r=nrc
This commit is contained in:
parent
f470f36275
commit
b1a2836e80
@ -33,12 +33,19 @@
|
||||
|
||||
#define LOG_TAG "HWComposer"
|
||||
|
||||
#if (LOG_NDEBUG == 0)
|
||||
/*
|
||||
* By default the debug message of hwcomposer (LOG_DEBUG level) are undefined,
|
||||
* but can be enabled by uncommenting HWC_DEBUG below.
|
||||
*/
|
||||
//#define HWC_DEBUG
|
||||
|
||||
#ifdef HWC_DEBUG
|
||||
#define LOGD(args...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, ## args)
|
||||
#else
|
||||
#define LOGD(args...) ((void)0)
|
||||
#endif
|
||||
|
||||
#define LOGI(args...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, ## args)
|
||||
#define LOGE(args...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, ## args)
|
||||
|
||||
#define LAYER_COUNT_INCREMENTS 5
|
||||
@ -91,7 +98,7 @@ HwcComposer2D*
|
||||
HwcComposer2D::GetInstance()
|
||||
{
|
||||
if (!sInstance) {
|
||||
LOGD("Creating new instance");
|
||||
LOGI("Creating new instance");
|
||||
sInstance = new HwcComposer2D();
|
||||
}
|
||||
return sInstance;
|
||||
|
Loading…
Reference in New Issue
Block a user