There are a few comments in our bindings code: // FIXME: OffscreenCanvas doesn't seem to work with our bindings here.
<rdar://problem/85318653>
Notes on how to handle OffscreenCanvas from slack: typedef (HTMLImageElement #if defined(ENABLE_VIDEO) && ENABLE_VIDEO or HTMLVideoElement #endif or HTMLCanvasElement or ImageBitmap #if defined(ENABLE_OFFSCREEN_CANVAS) && ENABLE_OFFSCREEN_CANVAS or OffscreenCanvas #endif #if defined(ENABLE_CSS_TYPED_OM) && ENABLE_CSS_TYPED_OM or CSSStyleImageValue #endif ) CanvasImageSource;
Created attachment 453812 [details] Patch
Comment on attachment 453812 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=453812&action=review > Source/WebCore/Modules/WebGPU/GPUCanvasContext.h:45 > + using CanvasType = std::variant<RefPtr<HTMLCanvasElement>, RefPtr<OffscreenCanvas>>; I'm happy to bike shed the name `CanvasType`. > Source/WebCore/Modules/WebGPU/GPUImageCopyExternalImage.h:41 > + using SourceType = std::variant<RefPtr<ImageBitmap>, RefPtr<HTMLCanvasElement>, RefPtr<OffscreenCanvas>>; I'm happy to bike shed the name `SourceType`.
Committed r290838 (248074@main): <https://commits.webkit.org/248074@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 453812 [details].