sdm: color-manager: Detect first frame of UI to apply color-mode.
Default color-mode is applied on the first frame of UI screen.
sdm.boot_anim_layer_count property is used to configure the
number of layers in boot animation process. Any commit with
more layers than sdm.boot_anim_layer_count is treated as first frame
of UI and default color-mode is applied at this point.
CRs-Fixed: 939410
Change-Id: Ib5c568819cd045f0de4ee7dcb4accfae9c27f5b2
diff --git a/sdm/libs/utils/debug.cpp b/sdm/libs/utils/debug.cpp
index 003be5a..d0d21ee 100644
--- a/sdm/libs/utils/debug.cpp
+++ b/sdm/libs/utils/debug.cpp
@@ -59,6 +59,13 @@
return value;
}
+int Debug::GetBootAnimLayerCount() {
+ int value = 0;
+ debug_.debug_handler_->GetProperty("sdm.boot_anim_layer_count", &value);
+
+ return value;
+}
+
bool Debug::IsRotatorDownScaleDisabled() {
int value = 0;
debug_.debug_handler_->GetProperty("sdm.debug.rotator_downscale", &value);