Bug 232814 - Cocoa GraphicsContext copies ImageBuffer data to temporary buffer when accelerated ImageBuffer is drawn to bitmap context
Summary: Cocoa GraphicsContext copies ImageBuffer data to temporary buffer when accele...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kimmo Kinnunen
URL:
Keywords: InRadar
Depends on: 231471
Blocks:
  Show dependency treegraph
 
Reported: 2021-11-08 05:35 PST by Kimmo Kinnunen
Modified: 2022-02-19 08:17 PST (History)
2 users (show)

See Also:


Attachments
Patch (67.01 KB, patch)
2021-11-08 06:03 PST, Kimmo Kinnunen
no flags Details | Formatted Diff | Diff

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