diff options
| author | 2023-01-21 10:02:15 -0500 | |
|---|---|---|
| committer | 2023-05-08 12:07:13 -0400 | |
| commit | c183eed053289c242c32c5c35a7071863165a61d (patch) | |
| tree | e702860529353e54b0357be1981ce605a726044c /libs/gui/BufferQueueThreadState.cpp | |
| parent | 16a345b0a095e4255dc14c76f121f1b31a2cba5a (diff) | |
SF: Encapsulate frame targeting
Introduce FrameTargeter to isolate a display's per-frame metrics around
past/upcoming deadline targets. The Scheduler updates the FrameTargeter
on frame begin/end, whereas ICompositor (concretely SurfaceFlinger) has
read-only access via the FrameTarget interface.
For now, only instantiate the pacesetter's FrameTargeter.
The only functional change is that `earliestPresentTime` now takes into
account the case of targeting two VSYNCs ahead.
Bug: 241285475
Bug: 241285191
Test: Perfetto
Test: dumpsys SurfaceFlinger --scheduler
Test: atest libscheduler_test:FrameTargeterTest
Change-Id: Idf9f43b37f3479c94a478d154eaa46f43e0c6c9d
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions