Expand description
Immutable WebGL2 storage shared by independent producers, video and camera.
Two routes, chosen at run time by where the compositor’s WebGL2 context lives:
on the page’s thread, native media transfers use TexImageSource directly into
a shared texture; on the render worker of a module with threads, each frame is
a WebCodecs VideoFrame transferred to the worker and uploaded there when the
compositor imports it (#601). No framework preview pixel array or readback is
admitted on either route. Browser decoder/driver internals are opaque.
Structs§
- Browser
Frame Stream - One producer transfer in flight, with latest-native-frame dropping. A second view reads the shared mailbox; it does not call this acquisition.
- Browser
Image Frame - Native browser image and its source-frame timestamp, sampled synchronously with the subsequent TexImageSource transfer. No framework pixel buffer.
- Pending
WebGl Frame - Cancellation drops the caller’s view; the fence retains submitted storage.
- WebGl
Frame Producer - Allocation policy for the active compositor context. Old generations remain charged to the same budget until their native storage actually retires.