summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Shane <shanewong@google.com> 2023-11-16 19:02:35 +0000
committer Shane <shanewong@google.com> 2023-11-16 22:36:36 +0000
commitf64a89759fcec07a0815a340368003ca8e6cca27 (patch)
treeadf5d8019b577be679e2bbb928417a71bf1b3f48 /api/api.go
parentee7eea320af5ae082cbf3074a72d98f5cc13c211 (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 'api/api.go')
0 files changed, 0 insertions, 0 deletions