summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author George Mount <mount@google.com> 2024-04-18 08:58:51 -0700
committer George Mount <mount@google.com> 2024-04-18 10:54:34 -0700
commit9adead25a553b90b4b16444793fa5ae99a143ba1 (patch)
treeb011613f1ac3d1853cc68166c2e5870be5f911cf /libs/androidfw/StringPool.cpp
parentddc92ec0d1c7a8f04fbf65282f3999e4449c398a (diff)
Move intermittent calculation to ViewRootImpl from View
Bug: 334006209 Intermittent calculations can be done on a per-ViewRootImpl basis rather than per-View basis and still retain 95% of the effect. This will save calculations on every drawn View and make one calculation per ViewRootImpl instead. This CL also makes a fast path for votePreferredFrameRate() that handles when no values are set for velocity and frame rate. This is the most common scenario and should have a fast-path. Test: ran performance test, ViewRootImplTest, ViewFrameRateTest Change-Id: Ib103287a976b0b3fc7a246e5780f6d6a8be58133
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions