From 7a3a44b1039391e0564491eb1e18679a32602b8b Mon Sep 17 00:00:00 2001 From: Hakim Hauston Date: Thu, 21 Dec 2023 11:41:16 +0800 Subject: [PATCH] [ADPF] PerformanceHintAPI - minor clang-tidy adjustments --- native/cocos/platform/android/adpf_manager.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/native/cocos/platform/android/adpf_manager.cpp b/native/cocos/platform/android/adpf_manager.cpp index 99b78122289..a49a44e6e34 100644 --- a/native/cocos/platform/android/adpf_manager.cpp +++ b/native/cocos/platform/android/adpf_manager.cpp @@ -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();