Add best-effort ViewCapture frame mapping

Add frame mapping for view capture based on time heuristic.
This is a best-effort solution that works in nominal cases,
but likely breaks in the presence of jank. The reliable
solution is being discussed on b/336831699.

Bug: 336831699
Test: npm run test:presubmit
Change-Id: I817b768ed9986b5ec63c2f9ca6c5626e30f0dc2c
2 files changed