[host] capture: pass frameIndex to capture backends

This allows capture backends to track damage made to each frame.
This commit is contained in:
Quantum
2021-07-11 19:18:59 -04:00
committed by Geoffrey McRae
parent f274bec8fc
commit 9ce4990793
5 changed files with 6 additions and 5 deletions

View File

@@ -213,7 +213,8 @@ static CaptureResult xcb_waitFrame(CaptureFrame * frame,
return CAPTURE_RESULT_OK;
}
static CaptureResult xcb_getFrame(FrameBuffer * frame, const unsigned int height)
static CaptureResult xcb_getFrame(FrameBuffer * frame,
const unsigned int height, int frameIndex)
{
assert(this);
assert(this->initialized);