Bug 258379

Summary: Lazily allocate the SharedVideoFrameWriter in RemoteDisplayListRecorderProxy
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: WebKit Process ModelAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: simon.fraser, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=262380

Description Simon Fraser (smfr) 2023-06-21 17:50:57 PDT
Every RemoteImageBufferProxy gets a SharedVideoFrameWriter, but only very few use it, and it has creation/destruction cost because it owns an IPC::Semaphore.
Comment 1 Radar WebKit Bug Importer 2023-06-21 17:51:18 PDT
<rdar://problem/111133625>
Comment 2 Simon Fraser (smfr) 2023-06-21 17:54:05 PDT
Pull request: https://github.com/WebKit/WebKit/pull/15170
Comment 3 EWS 2023-06-22 15:03:17 PDT
Committed 265427@main (e97b0792a67c): <https://commits.webkit.org/265427@main>

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