Bug 312532

Summary: RemoteImageBufferGraphicsContext::drawImageBuffer continually reallocate buffers
Product: WebKit Reporter: Matt Woodrow <mattwoodrow>
Component: Layout and RenderingAssignee: Matt Woodrow <mattwoodrow>
Status: REOPENED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 313553    
Bug Blocks:    

Matt Woodrow
Reported 2026-04-16 18:26:39 PDT
RemoteImageBufferGraphicsContext::drawImageBuffer uses a temporary buffer when it detects a self-copy. If there are many of these, it pays the cost for allocating over and over. We should cache a single buffer to be reused, and free it if isn't used for a while.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-04-16 18:26:45 PDT
Matt Woodrow
Comment 2 2026-04-16 18:30:38 PDT
EWS
Comment 3 2026-04-17 17:50:40 PDT
Committed 311500@main (61c4954ff80a): <https://commits.webkit.org/311500@main> Reviewed commits have been landed. Closing PR #62942 and removing active labels.
Mike Wyrzykowski
Comment 4 2026-04-28 09:58:33 PDT
Reopened Bugzilla. Magenta blocks on all blocks on YouTube video page, tracking revert in https://bugs.webkit.org/show_bug.cgi?id=313553.
Note You need to log in before you can comment on or make changes to this bug.