pub(crate) fn draw_host_watermark(
renderer: &mut GlesRenderer,
overlay: &OverlayState,
target: &mut Dmabuf,
size: (i32, i32),
) -> Result<SyncPoint, String>Expand description
One output’s render + capture tick: composite the elements overlapping this output
(positions made output-local by subtracting its layout origin), track damage, feed the
display’s own encode path, and answer a pending screenshot on the primary. Returns true
when the tick was skipped because this display’s encode pool was still busy (the caller
then retries shortly instead of waiting a full frame interval).
Stamp the watermark element onto target in place — no clear, so the
captured content underneath stays — returning the draw’s sync point for the
encoder to wait on.