mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 12:54:29 +00:00
resolveVideoCaptureBeyondViewport gated Chrome's beyond-viewport screenshot path to hardware-GPU captures, to skip the full-surface software re-rasterization tax. But without beyond-viewport, the viewport-bound capture clips the bottom edge of any frame containing a native video surface (the same #1094 tall-portrait guard the alpha capture paths already hardcode) — leaving ~87 bottom rows black. This hit two cohorts: software-GPU macOS/Linux hosts, and — worse — EVERY distributed chunk render, which hardcodes browserGpuMode "software", so the whole distributed fleet shipped video renders with a black bottom band. Reporter confirmed forcing resolveVideoCaptureBeyondViewport=true fixes it. Correct output wins over the software perf optimization: enable beyond-viewport for any render with a native video surface, regardless of GPU mode. Drops the now-vestigial browserGpuMode parameter (and its type) and updates both call sites. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>