power-libperfmgr: Send LOAD_RESET on hint session creation
Replace current init behavior with a reset hint. This makes sense,
because creating a session is implicitly a "load reset" plus HWUI may
not always send a reset hint after its background refactor. This will
also reduce first-frame boost latency for new sessions.
Bug: 279505058
Test: manual
Change-Id: I5bdeedecbd4e0afb7d777be332e5dd9fb386e1ac
diff --git a/power-libperfmgr/aidl/PowerHintSession.cpp b/power-libperfmgr/aidl/PowerHintSession.cpp
index 993007b..98436dd 100644
--- a/power-libperfmgr/aidl/PowerHintSession.cpp
+++ b/power-libperfmgr/aidl/PowerHintSession.cpp
@@ -132,7 +132,7 @@
}
PowerSessionManager::getInstance()->addPowerSession(this);
// init boost
- setSessionUclampMin(HintManager::GetInstance()->GetAdpfProfile()->mUclampMinInit);
+ sendHint(SessionHint::CPU_LOAD_RESET);
ALOGV("PowerHintSession created: %s", mDescriptor->toString().c_str());
}