sdm: Add debug TAG for Qdcm debugging
Add support to be able to solely debug QDCM tool path.
Change-Id: I2160a02e95774f284c65062d97c1ae400afcba2d
diff --git a/libqservice/IQService.h b/libqservice/IQService.h
index 00bf90e..16ea704 100644
--- a/libqservice/IQService.h
+++ b/libqservice/IQService.h
@@ -86,6 +86,7 @@
DEBUG_PIPE_LIFECYCLE,
DEBUG_DRIVER_CONFIG,
DEBUG_ROTATOR,
+ DEBUG_QDCM,
};
enum {
diff --git a/sdm/include/core/debug_interface.h b/sdm/include/core/debug_interface.h
index f8e80b1..1d7f43b 100644
--- a/sdm/include/core/debug_interface.h
+++ b/sdm/include/core/debug_interface.h
@@ -48,6 +48,7 @@
kTagDriverConfig, //!< Debug log is tagged for driver config.
kTagRotator, //!< Debug log is tagged for rotator.
kTagScalar, //!< Debug log is tagged for Scalar Helper.
+ kTagQDCM, //!< Debug log is tagged for display QDCM color managing.
};
/*! @brief Display debug handler class.
diff --git a/sdm/libs/hwc/hwc_debugger.cpp b/sdm/libs/hwc/hwc_debugger.cpp
index 6cbce3e..a3b3cb0 100644
--- a/sdm/libs/hwc/hwc_debugger.cpp
+++ b/sdm/libs/hwc/hwc_debugger.cpp
@@ -85,6 +85,14 @@
}
}
+void HWCDebugHandler::DebugQdcm(bool enable) {
+ if (enable) {
+ SET_BIT(debug_flags_, kTagQDCM);
+ } else {
+ CLEAR_BIT(debug_flags_, kTagQDCM);
+ }
+}
+
void HWCDebugHandler::Error(DebugTag /*tag*/, const char *format, ...) {
va_list list;
va_start(list, format);
diff --git a/sdm/libs/hwc/hwc_debugger.h b/sdm/libs/hwc/hwc_debugger.h
index 480db22..3386377 100644
--- a/sdm/libs/hwc/hwc_debugger.h
+++ b/sdm/libs/hwc/hwc_debugger.h
@@ -60,6 +60,7 @@
static void DebugCompManager(bool enable);
static void DebugDriverConfig(bool enable);
static void DebugRotator(bool enable);
+ static void DebugQdcm(bool enable);
virtual void Error(DebugTag tag, const char *format, ...);
virtual void Warning(DebugTag tag, const char *format, ...);
diff --git a/sdm/libs/hwc/hwc_session.cpp b/sdm/libs/hwc/hwc_session.cpp
index 8014ae5..43d0dec 100644
--- a/sdm/libs/hwc/hwc_session.cpp
+++ b/sdm/libs/hwc/hwc_session.cpp
@@ -668,6 +668,10 @@
HWCDebugHandler::DebugRotator(enable);
break;
+ case qService::IQService::DEBUG_QDCM:
+ HWCDebugHandler::DebugQdcm(enable);
+ break;
+
default:
DLOGW("type = %d is not supported", type);
}