TestLib: Move FrameGrabber from tst_qwindowcapturebackend


This patch moves FrameGrabber and VideoFrameInfo out of the window
capture test and into the shared test library, so that the screen
capture test can use them too.

The grabber waits using the window test's global timeout, so that is
moved along with it, and renamed to surfaceCaptureTestTimeout() to
reflect that it is specific to surface capture tests.

No functional change.

Pick-to: 6.12
Change-Id: I39da35617a7e5627c7a115bb1759021022847626
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
commit30040d1827f6a585093ded7e996c67f62b350774
parente21a3d530a803f9ad5a7f5477465c4baf9d645e6
authorNils Petter Skålerud <nils.petter.skalerud@qt.io>
committerNils Petter Skålerud <nils.petter.skalerud@qt.io>
commit timeFri, 9 Oct 2026 07:33:13 +0000