summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceControl.cpp
diff options
context:
space:
mode:
author Adithya Srinivasan <adsrini@google.com> 2021-05-03 20:24:46 +0000
committer Adithya Srinivasan <adsrini@google.com> 2021-05-03 21:09:20 +0000
commitbed4c4f412d056932374f1d4f317243bd394917f (patch)
treec70edbb7c5721032783688c50a4eb7a298b6ce65 /libs/gui/SurfaceControl.cpp
parenta0e37d286b55bab43ce2c295f98885c9bf77dc95 (diff)
Limit Predictions size based on count instead of time
We have an arbitrary time of 120ms for the predictions before they expire. Our assumption was that 120ms is plenty enough for apps & sf that if they finish beyond this, it's basically a jank. However, with some traces, we have noticed SF not running in the main thread at all during setPowerMode() for more than 120ms. This is causing a data loss in jank classification. This change addresses this by limiting the number of predictions stored in TokenManager. Bug: 187091879 Bug: 186874532 Test: libsurfaceflinger_unittest Change-Id: I555bfd974585b7e0632eade776d201f1189c81e0
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
0 files changed, 0 insertions, 0 deletions