Camera: Handle release fence when syncing preview to display

If release fence is enabled by the HAL, the time when a frame becomes
available isn't necessarily the time when processCaptureResult() is
called. The fence may signal sometime after processCaptureResult().

Support this use case by checking the reference frame's fence signal
time and update the captureToPresentOffset.

Test: Vendor testing
Bug: 276280239
Change-Id: I5278c2e2f9961af2cf667235254ad32eea126895
2 files changed