Skip to content

Commit 3ce1ad2

Browse files
AndroidMatt1mikeNG
authored andcommitted
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
1 parent 32cf467 commit 3ce1ad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

power-libperfmgr/aidl/PowerHintSession.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ PowerHintSession::PowerHintSession(int32_t tgid, int32_t uid, const std::vector<
132132
}
133133
PowerSessionManager::getInstance()->addPowerSession(this);
134134
// init boost
135-
setSessionUclampMin(HintManager::GetInstance()->GetAdpfProfile()->mUclampMinInit);
135+
sendHint(SessionHint::CPU_LOAD_RESET);
136136
ALOGV("PowerHintSession created: %s", mDescriptor->toString().c_str());
137137
}
138138

0 commit comments

Comments
 (0)