mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-05 00:56:23 +00:00
feat(engine): enable CanvasDrawElement in renderer Chrome args
Cherry-picked from feat/html-in-canvas-launch (PR #611): - Enable --enable-features=CanvasDrawElement in Chrome browser args so HTML-in-canvas compositions render correctly - Add native drawElementImage() capture path for shader transitions with existing fallback preserved - Reuse renderer Chrome args in hyperframes validate for consistent WebGL/CanvasDrawElement environment - Add capture.test.ts for the new shader transition capture path
This commit is contained in:
@@ -265,6 +265,8 @@ export interface BuildChromeArgsOptions {
|
||||
platform?: NodeJS.Platform;
|
||||
}
|
||||
|
||||
const CANVAS_DRAW_ELEMENT_FEATURE_FLAG = "--enable-features=CanvasDrawElement";
|
||||
|
||||
export function buildChromeArgs(
|
||||
options: BuildChromeArgsOptions,
|
||||
config?: Partial<Pick<EngineConfig, "browserGpuMode" | "disableGpu" | "chromePath">>,
|
||||
@@ -282,6 +284,7 @@ export function buildChromeArgs(
|
||||
"--no-sandbox",
|
||||
"--disable-setuid-sandbox",
|
||||
"--disable-dev-shm-usage",
|
||||
CANVAS_DRAW_ELEMENT_FEATURE_FLAG,
|
||||
"--enable-webgl",
|
||||
"--ignore-gpu-blocklist",
|
||||
...getBrowserGpuArgs(browserGpuMode, platform),
|
||||
|
||||
Reference in New Issue
Block a user