diff options
| author | 2023-11-16 19:02:35 +0000 | |
|---|---|---|
| committer | 2023-11-16 22:36:36 +0000 | |
| commit | f64a89759fcec07a0815a340368003ca8e6cca27 (patch) | |
| tree | adf5d8019b577be679e2bbb928417a71bf1b3f48 /libs/input/PointerController.cpp | |
| parent | ee7eea320af5ae082cbf3074a72d98f5cc13c211 (diff) | |
Use applyAsyncUnsafe() instead of apply() to apply a transaction
As suggested, applyAsyncUnsafe() can be more efficient than apply() when
apply a transaction. This CL makes the corresponding changes to
setFrameRateCateogry and setFrameRate call
Also, I reduce the frequency of the API calls by comparing the previous
frame rate (category) with the current one. We only make an API call
when they are different.
Bug: 310966165
Test: Manual Test, atest ViewRootImplTest
Change-Id: I3f0752da8d088edff4f19725dabd75bd6d11a28f
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions