[Webkit-unassigned] [Bug 241127] New: ImageBuffer::copyImage consumes GPUP memory and is redundant

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 31 06:14:52 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=241127

            Bug ID: 241127
           Summary: ImageBuffer::copyImage consumes GPUP memory and is
                    redundant
           Product: WebKit
           Version: Safari 13
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Canvas
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kkinnunen at apple.com
                CC: dino at apple.com
            Blocks: 240639

ImageBuffer::copyImage consumes GPUP memory and is redundant

ImageBuffer::copyImage overrides:
- Always ends up returning BitmapImage
- Always ends up constructing BitmapImage from copyNativeImage
- Is implemented erroneously in many backends, ignoring the preserve resolution scale flag
- Is implemented correctly in ImageBufferCGBackend, but will allocate the destination buffer when trying to honour the PreserveResolution::No. This will cause a large unattributed allocation in GPUP


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=240639
[Bug 240639] Canvas.toDataURL causes excessive GPUP memory use on Cocoa
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220531/55a51834/attachment-0001.htm>


More information about the webkit-unassigned mailing list