Bug 267702 - ImageBitmap data is drawn to GPUP surface needlessly
Summary: ImageBitmap data is drawn to GPUP surface needlessly
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kimmo Kinnunen
URL:
Keywords: InRadar
Depends on:
Blocks: PaulPlay, Studio
  Show dependency treegraph
 
Reported: 2024-01-18 08:09 PST by Kimmo Kinnunen
Modified: 2024-01-18 08:16 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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