Add a headless render check for the 16-bit sidecar swap.

The proxy and sidecar reach the GPU through different upload paths, and whether
they agree depends on UNPACK_FLIP_Y_WEBGL being ignored for ImageBitmap. A unit
test cannot see that, so the picture could silently start flipping again. The
check encodes a two-tone sidecar with the server's encoder, serves it beside the
matching JPEG and measures the rows that land in a WebGL2 texture in headless
Chrome.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-28 14:30:36 +00:00
parent c10ff97670
commit 1e7ec0cf15
3 changed files with 348 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@
"preview": "vite preview",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"check:render": "node scripts/render-check.mjs",
"build:lens-db": "node scripts/build-lens-db.mjs"
},
"dependencies": {