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
This commit is contained in:
Siddharth Zaveri
2016-01-12 01:05:14 -05:00
parent cd7c3ffbd3
commit 918435f45d
4 changed files with 19 additions and 8 deletions

View File

@@ -59,6 +59,13 @@ int Debug::GetIdleTimeoutMs() {
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);