diff options
author | Naseer Ahmed <naseer@codeaurora.org> | 2018-04-25 19:32:07 -0400 |
---|---|---|
committer | Naseer Ahmed <naseer@codeaurora.org> | 2018-04-25 19:32:07 -0400 |
commit | 6892f4fb6475131d76384928a2037c143af4d33a (patch) | |
tree | 6e15c9b25572eb2d0c57be7b23439aa2ffd80451 /sdm | |
parent | 80e360ff0940b256737089c8db47836b3a2f83f3 (diff) | |
download | android_hardware_qcom_sdm710_display-6892f4fb6475131d76384928a2037c143af4d33a.tar.gz android_hardware_qcom_sdm710_display-6892f4fb6475131d76384928a2037c143af4d33a.tar.bz2 android_hardware_qcom_sdm710_display-6892f4fb6475131d76384928a2037c143af4d33a.zip |
sdm: Dump color modes in dumpsys
Change-Id: I90b68cb66d3cc6c8746cc8cf7ec74b8f285be449
Diffstat (limited to 'sdm')
-rw-r--r-- | sdm/libs/core/display_base.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sdm/libs/core/display_base.cpp b/sdm/libs/core/display_base.cpp index 534363d6..a50dd944 100644 --- a/sdm/libs/core/display_base.cpp +++ b/sdm/libs/core/display_base.cpp @@ -553,6 +553,17 @@ std::string DisplayBase::Dump() { << max_mixer_stages_; os << "\nnum configs: " << num_modes << " active config index: " << active_index; + os << "\nAvailable Color Modes:\n"; + for (auto it : color_mode_map_) { + os << " " << it.first << " " << std::setw(35 - INT(it.first.length())) << + it.second->id; + os << " "; + for (auto attr_it : color_mode_attr_map_[it.first]) { + os << attr_it.first << ": " << attr_it.second << + std::setw(6 - INT(attr_it.second.length())) << " "; + } + os << "\n"; + } DisplayConfigVariableInfo &info = attrib; uint32_t num_hw_layers = 0; |