Bug 253885

Summary: WebGLRenderingContextBase texImageSource HTMLCanvasElement implementation unable to share code with OffscreenCanvas
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: WebGLAssignee: Kimmo Kinnunen <kkinnunen>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, kbr, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 253886    

Description Kimmo Kinnunen 2023-03-14 06:38:15 PDT
WebGLRenderingContextBase texImageSource CanvasRenderingContext2D implementation unable to share code with OffscreenCanvas

The texImageSourceHelper invokes the std::variant cases directly inside the function body, making it difficult to share CanvasRenderingContext2D and OffscreenCanvas base implementation.
Comment 1 Radar WebKit Bug Importer 2023-03-14 06:40:14 PDT
<rdar://problem/106699408>
Comment 2 Kimmo Kinnunen 2023-03-14 07:01:55 PDT
Pull request: https://github.com/WebKit/WebKit/pull/11494
Comment 3 EWS 2023-03-15 01:35:13 PDT
Committed 261678@main (23d40f46815d): <https://commits.webkit.org/261678@main>

Reviewed commits have been landed. Closing PR #11494 and removing active labels.