QSurfaceCapture: Add private APIs for hiding cursor and drop shadows
Our tests for window/screen capture can be interfered by capturing
cursor and by the implementation including window drop shadows as part
of the stream. This is particularly problematic when introducing
more strict integration tests.
This patch introduces a private API to hide cursor and drop shadows when
capturing a window or screen. The patch includes an implementation for
macOS. The patch incorporates these private APIs into
tst_qwindowcapturebackend.
The patch does some minor refactoring of QMacScreenCaptureKit to store
the new information.
TODO: Apply similar changes for QScreenCapture integration tests.
Pick-to: 6.12
Change-Id: Iff647b0671be6706477667d8a1a381da94a93727
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>