diff options
author | 2023-04-12 17:26:02 +0000 | |
---|---|---|
committer | 2023-04-12 23:49:22 +0000 | |
commit | c398c0100accdcb45907f15579e9068d0bbe0a67 (patch) | |
tree | 0f8e7ea57d0fdf00b7ca67ee23190ce73084cc41 /libs/jpegrecoverymap/recoverymapmath.cpp | |
parent | b6c0bd6a247669b66dfbdf79eeab460e36d97f3e (diff) |
Add explicit clearSyncTransaction instead of passing in null
When attempting to clear the last syncNextTransaction, the code was
ambiguous and it was unclear what the expectation should be. Instead,
don't allow null when calling syncNextTransaction and don't allow the
syncTransaction to be overwritten. If the caller wants to clear the
syncTransaction before a frame has arrived, they can do so by calling
clearSyncTransaction.
Test: No warning log in sync with no buffer.
Test: BLASTBufferQueueTest
Bug: 272189296
Change-Id: I3a945f5503220225f2147b0331d1fb2f9ea8dc63
Diffstat (limited to 'libs/jpegrecoverymap/recoverymapmath.cpp')
0 files changed, 0 insertions, 0 deletions