commit | 3667800c553fddb1627b455d2cb0d32c258d2085 | [log] [tgz] |
---|---|---|
author | Jerry Chang <chenghsiuchang@google.com> | Wed Nov 29 16:56:17 2023 +0000 |
committer | Jerry Chang <chenghsiuchang@google.com> | Thu Nov 30 13:25:14 2023 +0000 |
tree | 0cd5b78a84df8308883a2b23673184da278f0315 | |
parent | 43881b0fa27a23422041337c89d95098a2d4b618 [diff] [blame] |
SF: guard texture view update tolerance logic with small area allow list Make sure the texture view update tolerance logic for refresh rate heuristic only applies to apps in the small area detection allow list. Bug: 307419914 Test: presubmit Change-Id: Ieefdc4abe8c6ae8389035914fea4737e00cceeb4
diff --git a/services/surfaceflinger/Scheduler/SmallAreaDetectionAllowMappings.cpp b/services/surfaceflinger/Scheduler/SmallAreaDetectionAllowMappings.cpp index 38c6da4..7510ebf 100644 --- a/services/surfaceflinger/Scheduler/SmallAreaDetectionAllowMappings.cpp +++ b/services/surfaceflinger/Scheduler/SmallAreaDetectionAllowMappings.cpp
@@ -29,7 +29,7 @@ } } -void SmallAreaDetectionAllowMappings::setThesholdForAppId(int32_t appId, float threshold) { +void SmallAreaDetectionAllowMappings::setThresholdForAppId(int32_t appId, float threshold) { if (!isValidThreshold(threshold)) return; std::lock_guard lock(mLock);