summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Shane <shanewong@google.com> 2024-10-28 20:12:02 +0000
committer Shane <shanewong@google.com> 2024-10-29 23:40:15 +0000
commit6fce2a69d3705c820023f28f02cff9495e71d690 (patch)
tree5ad1dbd06f8568127413efee6ef1784c70a8bde9 /libs/androidfw/StringPool.cpp
parentc4b3da5227818271ab1b4c73e7c2e6c6532ddb4b (diff)
[ARR] Fix issues with apps that have internal rendering
This CL addresses two issues affecting apps with internal rendering. The root cause is that the value of mDrawnThisFrame is always set to false, preventing the calls to setFrameRate and setFrameRateCategory functions. This behavior results in two issues: 1. Touch boost never gets reset. 2. mSurfaceReplaced is never set to false, causing unnecessary setFrameRateCategory binder calls even when the previous and current frame rate categories are identical. Solution: 1. When receiving the MSG_TOUCH_BOOST_TIMEOUT message and mDrawnThisFrame is false, call setPreferredFrameRateCategory(FRAME_RATE_CATEGORY_NO_PREFERENCE). 2. Always enforce a timeout to reset mSurfaceReplaced to false. Bug: 374376214 Flag: EXEMPT bugfix Test: atest ViewFrameRateTest and Manual test Change-Id: I2e8c8b1f53e9ad38f4785bef9507b8d173e4f219
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions