diff options
| author | 2022-12-27 22:00:24 +0000 | |
|---|---|---|
| committer | 2023-01-04 22:57:56 +0000 | |
| commit | 3a8f19bda6d380dea2a83b292e4f8efd8fb588f6 (patch) | |
| tree | c082acba6aa4ca73b9a1f6583851285db86f2c2e /libs/gui/DisplayEventReceiver.cpp | |
| parent | 990ff7ba368f3d24ba6ac25321e326c82f13d620 (diff) | |
[BBQ] Only wait when acquiring a buffer if in a sync.
There's no need to do the explicit maxBuffersAcquired check since the
acquireBuffer call will return a status of NO_BUFFER_AVAILABLE if it
can't acquire any more buffers. Therefore, the code can be simplified so
it will return early in most cases if NO_BUFFER_AVAILABLE is returned.
If there was a request to sync the buffer, then we need to wait on a
free buffer and not return early.
Test: BBQ syncs
Bug: 263340543
Change-Id: I11a81a440bc0d22ba85bcf4d4a068b853ca5cf9c
Diffstat (limited to 'libs/gui/DisplayEventReceiver.cpp')
0 files changed, 0 insertions, 0 deletions