composer: populate doze mode if the panel supports command mode
Change-Id: I09956d011674410ce03cfeba31ca58e727ac12ea
diff --git a/composer/hwc_display_builtin.cpp b/composer/hwc_display_builtin.cpp
index b132572..0fc1cf0 100644
--- a/composer/hwc_display_builtin.cpp
+++ b/composer/hwc_display_builtin.cpp
@@ -1264,6 +1264,16 @@
return false;
}
+bool HWCDisplayBuiltIn::HasSmartPanelConfig(void) {
+ for (auto &config : variable_config_map_) {
+ if (config.second.smart_panel) {
+ return true;
+ }
+ }
+
+ return false;
+}
+
int HWCDisplayBuiltIn::Deinit() {
// Destory color convert instance. This destroys thread and underlying GL resources.
if (gl_layer_stitch_) {