Bug 232814

Summary: Cocoa GraphicsContext copies ImageBuffer data to temporary buffer when accelerated ImageBuffer is drawn to bitmap context
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: CanvasAssignee: Kimmo Kinnunen <kkinnunen>
Status: NEW    
Severity: Normal CC: dino, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 231471    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Kimmo Kinnunen
Reported 2021-11-08 05:35:00 PST
Cocoa GraphicsContext copies ImageBuffer data to temporary buffer when accelerated ImageBuffer is drawn to bitmap context This happens for example when a ImageBitmap is transferred from GPUP to WP. IOSurface::createImage creates an image that will always copy the image data, even though it should be accessible from the IOSurface in most cases.
Attachments
Patch (67.01 KB, patch)
2021-11-08 06:03 PST, Kimmo Kinnunen
no flags
Kimmo Kinnunen
Comment 1 2021-11-08 06:03:23 PST
Radar WebKit Bug Importer
Comment 2 2021-11-15 05:35:19 PST
Dean Jackson
Comment 3 2022-02-19 08:17:25 PST
Comment on attachment 443539 [details] Patch Is this still needed? Clearing old review flag. Please rebase and mark for review if necessary.
Note You need to log in before you can comment on or make changes to this bug.