summaryrefslogtreecommitdiff
path: root/power-libperfmgr/aidl/PowerHintSession.h
diff options
context:
space:
mode:
Diffstat (limited to 'power-libperfmgr/aidl/PowerHintSession.h')
-rw-r--r--power-libperfmgr/aidl/PowerHintSession.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/power-libperfmgr/aidl/PowerHintSession.h b/power-libperfmgr/aidl/PowerHintSession.h
index 9bd9a2c..604f6e2 100644
--- a/power-libperfmgr/aidl/PowerHintSession.h
+++ b/power-libperfmgr/aidl/PowerHintSession.h
@@ -132,6 +132,7 @@ class PowerHintSession : public BnPowerHintSession {
private:
void updateUniveralBoostMode();
int setSessionUclampMin(int32_t min);
+ void tryToSendPowerHint(std::string hint);
std::string getIdString() const;
const std::shared_ptr<AdaptiveCpu> mAdaptiveCpu;
AppHintDesc *mDescriptor = nullptr;
@@ -145,6 +146,9 @@ class PowerHintSession : public BnPowerHintSession {
int64_t mLastStartedTimeNs;
int64_t mLastDurationNs;
int64_t mWorkPeriodNs;
+
+ // To cache the status of whether ADPF hints are supported.
+ std::unordered_map<std::string, std::optional<bool>> mSupportedHints;
};
} // namespace pixel