Skip to content

Commit

Permalink
[ADPF] PerformanceHintAPI - minor clang-tidy adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
HakimHauston committed Dec 21, 2023
1 parent 74df451 commit 7a3a44b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions native/cocos/platform/android/adpf_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,24 +306,21 @@ void ADPFManager::EndPerfHintSession(jlong target_duration_ns) {
}
#endif
}
void ADPFManager::AddThreadIdToHintSession(int32_t tid)
{
void ADPFManager::AddThreadIdToHintSession(int32_t tid) {
thread_ids_.push_back(tid);
auto data = thread_ids_.data();

registerThreadIdsToHintSession();
}

void ADPFManager::RemoveThreadIdFromHintSession(int32_t tid)
{
void ADPFManager::RemoveThreadIdFromHintSession(int32_t tid) {
thread_ids_.erase(std::remove(thread_ids_.begin(), thread_ids_.end(), tid), thread_ids_.end());
auto data = thread_ids_.data();

registerThreadIdsToHintSession();
}

void ADPFManager::registerThreadIdsToHintSession()
{
void ADPFManager::registerThreadIdsToHintSession() {
#if __ANDROID_API__ >= 34
auto data = thread_ids_.data();
std::size_t size = thread_ids_.size();
Expand Down

0 comments on commit 7a3a44b

Please sign in to comment.