Bug 268608 - Draws to unused 2D contexts may consume excessive amount of memory on Cocoa
Summary: Draws to unused 2D contexts may consume excessive amount of memory on Cocoa
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kimmo Kinnunen
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-02-02 00:34 PST by Kimmo Kinnunen
Modified: 2024-02-06 11:46 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-02-02 00:34:23 PST
Unused canvas draws consume memory

Draw canvas A to 2d context B
Update canvas A
Draw canvas A to 2d context B
Update canvas A
Draw canvas A to 2d context B

Don't use canvas B

Cauese each draw to stay in context B queue, as the results are not used.
Causes each update to A to migrate the data to COW buffer
Comment 1 Kimmo Kinnunen 2024-02-02 00:35:03 PST
<rdar://117708049>
Comment 2 Kimmo Kinnunen 2024-02-02 01:16:24 PST
Pull request: https://github.com/WebKit/WebKit/pull/23733
Comment 3 EWS 2024-02-06 11:45:43 PST
Committed 274164@main (da9744107a30): <https://commits.webkit.org/274164@main>

Reviewed commits have been landed. Closing PR #23733 and removing active labels.