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

Skip to content
Commit f64a8975 authored by Shane's avatar Shane
Browse files

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
parent ee7eea32
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