diff options
| author | 2024-04-18 08:58:51 -0700 | |
|---|---|---|
| committer | 2024-04-18 10:54:34 -0700 | |
| commit | 9adead25a553b90b4b16444793fa5ae99a143ba1 (patch) | |
| tree | b011613f1ac3d1853cc68166c2e5870be5f911cf /libs/androidfw/StringPool.cpp | |
| parent | ddc92ec0d1c7a8f04fbf65282f3999e4449c398a (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