Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9adead25 authored by George Mount's avatar George Mount
Browse files

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
parent ddc92ec0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment