Optionalcanvas: HTMLCanvasElementOptionalvideo: HTMLVideoElementOptionalonDestroy: () => voidReadonlycanvasReadonlyrendererOptional ReadonlyvideoDraw a sub-renderer's content onto this renderer.
The source image is read from image.canvas.
Optionalwidth: numberOptionalheight: numberExecute all buffered draw commands.
Ordering contract: GPU-accelerated commands (drawImage, fillRect, strokeRect) are rendered first, then Canvas 2D helper operations (text/path) are composited on top. Callers must ensure fillText/strokeText are issued AFTER all drawImage calls within a single frame.
Optionalarg1: numberStaticreset
Canvasを使ったレンダラー dom/canvas周りのAPIを切り出したもの
Param: canvas
レンダリング先のCanvas
Param: video
レンダリングするVideo(任意)