Bug 267702

Summary: ImageBitmap data is drawn to GPUP surface needlessly
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: ImagesAssignee: Kimmo Kinnunen <kkinnunen>
Status: NEW ---    
Severity: Normal CC: sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 261685    

Description Kimmo Kinnunen 2024-01-18 08:09:24 PST
ImageBitmap data is drawn to GPUP surface needlessly

Is:

1) draw copy to IPC buffer in WP side
2) draw copy to Accelerated ImageBuffer in GPUP side
3a) Take NativeImage references of the ImageBuffer for each use
3b) Transfer data to WP for WebGL use-cases, then transfer back to GPUP

Should be
1) draw copy to shareable ImageBuffer WP side
2a) Take NativeImage reference, send the shared handle to GPUP when using
2b) Use the data directly for WebGL use-cases
Comment 1 Radar WebKit Bug Importer 2024-01-18 08:10:17 PST
<rdar://problem/121194515>
Comment 2 Kimmo Kinnunen 2024-01-18 08:16:36 PST
Pull request: https://github.com/WebKit/WebKit/pull/22915