diff --git a/libs/hwui/renderthread/HintSessionWrapper.cpp b/libs/hwui/renderthread/HintSessionWrapper.cpp index 565da52de9403190025d6809fa0f6487d29c5c6b..d1ebe6d9f576012e40d759bdcea83dbf7c6676fd 100644 --- a/libs/hwui/renderthread/HintSessionWrapper.cpp +++ b/libs/hwui/renderthread/HintSessionWrapper.cpp @@ -72,7 +72,6 @@ void HintSessionWrapper::destroy() { mSessionValid = true; mHintSession = nullptr; } - mResetsSinceLastReport = 0; } bool HintSessionWrapper::init() { @@ -112,10 +111,10 @@ bool HintSessionWrapper::init() { // Use a placeholder target value to initialize, // this will always be replaced elsewhere before it gets used - int64_t targetDurationNanos = - mLastTargetWorkDuration == 0 ? kDefaultTargetDuration : mLastTargetWorkDuration; + int64_t defaultTargetDurationNanos = 16666667; mHintSessionFuture = CommonPool::async([=, this, tids = std::move(tids)] { - return mBinding->createSession(manager, tids.data(), tids.size(), targetDurationNanos); + return mBinding->createSession(manager, tids.data(), tids.size(), + defaultTargetDurationNanos); }); return false; } diff --git a/libs/hwui/renderthread/HintSessionWrapper.h b/libs/hwui/renderthread/HintSessionWrapper.h index 41891cd80a42bcbd8f0a27a67c6e85bc56166645..36e91ea33c7518c6bf504b6d7f8a1f5a7063b12f 100644 --- a/libs/hwui/renderthread/HintSessionWrapper.h +++ b/libs/hwui/renderthread/HintSessionWrapper.h @@ -65,7 +65,6 @@ private: static constexpr nsecs_t kResetHintTimeout = 100_ms; static constexpr int64_t kSanityCheckLowerBound = 100_us; static constexpr int64_t kSanityCheckUpperBound = 10_s; - static constexpr int64_t kDefaultTargetDuration = 16666667; // Allows easier stub when testing class HintSessionBinding {