Repository navigation
[ADPF] PerformanceHintAPI - include core threads + use NDK API - #16610
Conversation
Interface Check ReportThis pull request does not change any public interfaces ! |
|
Please refer the compiling error on Android |
|
Could you please fix the clang tidy error? |
| } | ||
| void ADPFManager::AddThreadIdToHintSession(int32_t tid) { | ||
| thread_ids_.push_back(tid); | ||
| auto data = thread_ids_.data(); |
|
|
||
| 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(); |
| #elif __ANDROID_API__ >= 33 | ||
| auto data = thread_ids_.data(); | ||
| std::size_t size = thread_ids_.size(); | ||
| int result = 0; |
There was a problem hiding this comment.
It seems result is only used in CC_LOG_INFO ?
| jobject obj_power_service_; | ||
| jmethodID get_thermal_headroom_; | ||
|
|
||
| std::map<std::string, jobject> map_hint_sessions; |
There was a problem hiding this comment.
It is better to use std::unordered_map<> if the order is not important.
There was a problem hiding this comment.
Thanks, order isn't important, only the key value mapping is, changed in 1d6c8b9
|
@HakimHauston thanks, i will merge it after @HakimNB approve it. |
Thanks.. but I am not authorized to approve it..? |
|
@HakimNB i am not sure, i thought everyone had the permission. But no matter, you can reply in comment if you approve it. |
Re: #
adapt PerformanceHintAPI to include main thread & render thread and optionally use the NDK API when available
Changelog
Continuous Integration
This pull request:
Compatibility Check
This pull request: