OptionalgetOptionalgetResolve the wasm Memory for pid. The GL bridge reads cmdbuf bytes
directly out of the process's Memory SAB on host_gl_submit and
host_gl_query, so the embedder must thread its per-pid memory map
through this callback. Returning undefined is interpreted as "the
process is gone" and turns the GL call into a silent no-op.
OptionalmarkNotify the embedder that GL has claimed the canvas for crtcId.
The KMS vblank pump uses this to skip the CPU putImageData blit
for canvases now painted directly by WebGL2. Idempotent.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonRead up to maxLen bytes from stdin. Return a Uint8Array with available data, or empty/null for EOF.
OptionalonOptionalonOptionalonOptionalon
Resolve the KMS scanout canvas for
crtcId, if one is registered. Used byhost_gl_create_contextto auto-attach the canvas to the DRM-master pid's GL binding so user programs that drive the modeset stack (drmModeSetCrtc + eglCreateContext) don't have to callgl.attachCanvasseparately. Returningundefinedkeeps the legacy "embedder must call attachCanvas manually" path alive.