summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Shane <shanewong@google.com> 2023-09-15 21:48:24 +0000
committer Shane <shanewong@google.com> 2023-10-16 22:03:35 +0000
commit22dc3e0a9bcbb60b645c7d86cc019824a3632c22 (patch)
tree059a8a4736f003f6817831bede73108c234a1ea4 /libs/androidfw/misc.cpp
parent026f2362dd5364e708800491588c871c675bb2ab (diff)
Basic framework of the UI toolkit variable refresh rate project
This CL includes two major changes for variable refresh rate (VRR) project: 1. Migrated the TouchBoost logic from SurfaceFlinger to ViewRootImpl. When users touch (MotionEvent.ACTION_DOWN) the screen or press and move (MotionEvent.ACTION_MOVE), we increase the frame rate / refresh rate to the maximum value to offer users a smooth user experience. The frame rate will then be lowered after a certain period. 2. Built the frame rate voting mechanism. This enables Views to vote for their preferred frame rate. Those votes will be aggregated in ViewRootImpl to determine a final one. The preferred frame rate of a View is determined based on its size. The implementation is gated by a Trunk Stable flag. Bug: 278731105 Bug: 278731091 Bug: 293505054 Bug: 296459487 Bug: 293513140 Bug: 293513467 Test: atest ViewRootImplTest / ViewTest Change-Id: I78a8f327eda8f2a32180cba7b93e939fa3a658ff
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions