diff options
| author | 2022-12-27 22:00:24 +0000 | |
|---|---|---|
| committer | 2023-01-09 22:08:55 +0000 | |
| commit | 92bf8b0893b7341075728ca5c3d9c58f05215fd1 (patch) | |
| tree | c1f6c35cf73d9a479341654bad11e463919f4638 /services/surfaceflinger/RegionSamplingThread.cpp | |
| parent | ab97d6e335f56e6c8f8d06b89bf2d44200b5fb6a (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
Bug: 263570429
Change-Id: I11a81a440bc0d22ba85bcf4d4a068b853ca5cf9c
Merged-In: I11a81a440bc0d22ba85bcf4d4a068b853ca5cf9c
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions