summaryrefslogtreecommitdiff
path: root/sdm/include
diff options
context:
space:
mode:
authorSaurabh Dubey <sdubey@codeaurora.org>2017-10-24 16:28:01 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-11-28 20:32:24 -0800
commitd90a6a43cc31c1dbcda05dce2b184cc444893908 (patch)
treee368763a68ad7592ef020c1ddc72daf7549787e9 /sdm/include
parentabf236b541b685f71acbeafc3c533a316b2b3f30 (diff)
downloaddisplay-d90a6a43cc31c1dbcda05dce2b184cc444893908.tar.gz
display: Enhance debug logging
1) Enable dynamic debugging in DRM 2) Add more Qservice debug categories, add corresponding kTags 3) Use ALOG for messages before core creation and after it is destroyed 4) Categorize existing logs correctly 5) Add more logs Change-Id: I3a9907900c6546adca907ecf720a78649fdc800b Crs-fixed: 2146757
Diffstat (limited to 'sdm/include')
-rw-r--r--sdm/include/core/debug_interface.h4
-rw-r--r--sdm/include/utils/rect.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/sdm/include/core/debug_interface.h b/sdm/include/core/debug_interface.h
index da219442..dba85ac5 100644
--- a/sdm/include/core/debug_interface.h
+++ b/sdm/include/core/debug_interface.h
@@ -49,7 +49,9 @@ enum DebugTag {
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.
- kTagQOSClient, //!< Debug log is tagged for Qos client
+ kTagQOSClient, //!< Debug log is tagged for Qos client.
+ kTagDisplay, //!< Debug log is tagged for display core logs.
+ kTagClient, //!< Debug log is tagged for SDM client.
};
/*! @brief Display debug handler class.
diff --git a/sdm/include/utils/rect.h b/sdm/include/utils/rect.h
index 303fc9f1..b25f76e8 100644
--- a/sdm/include/utils/rect.h
+++ b/sdm/include/utils/rect.h
@@ -45,6 +45,7 @@ namespace sdm {
bool IsValid(const LayerRect &rect);
bool IsCongruent(const LayerRect &rect1, const LayerRect &rect2);
+ void LogI(DebugTag debug_tag, const char *prefix, const LayerRect &roi);
void Log(DebugTag debug_tag, const char *prefix, const LayerRect &roi);
void Normalize(const uint32_t &align_x, const uint32_t &align_y, LayerRect *rect);
LayerRect Union(const LayerRect &rect1, const LayerRect &rect2);