summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2021-04-26 16:31:44 -0700
committer Alec Mouri <alecmouri@google.com> 2021-04-26 17:24:37 -0700
commit07b27ce1b6a8646d0fc7236be7d75210e4011be8 (patch)
tree9ac186be9f9160b6170d7c6a70a4f1d55484d577 /libs/gui/LayerDebugInfo.cpp
parent9d53391338e6f76bcadcefae389d913e68ad05d7 (diff)
Add rate limiting to fps reporter.
From a user perspective, the jittery frame rate is jarring, and from a performance perspective submitting a binder call every frame is overkill. To address those two concerns add rate-limiting from SurfaceFlinger to limit the frame rate reporting. As part of this patch, extract OneShotTimer's fake clock interface to a SF-common location so that FpsReporter can share that interface for testing. Bug: 186265654 Test: Manually inspect fps overlay Test: libsurfaceflinger_unittest Change-Id: I45eb994d847abbb9fc8d5ff7d07ad51a1a790176
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions