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

Description Kimmo Kinnunen 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.
Comment 1 Kimmo Kinnunen 2021-11-08 06:03:23 PST
Created attachment 443539 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2021-11-15 05:35:19 PST
<rdar://problem/85408510>
Comment 3 Dean Jackson 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.