Bug 257173

Summary: MachSendRights can release their IOSurface use-counts before CA adds a new ones
Product: WebKit Reporter: Matt Woodrow <mattwoodrow>
Component: Layout and RenderingAssignee: Matt Woodrow <mattwoodrow>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Matt Woodrow 2023-05-22 17:23:46 PDT
CoreAnimation doesn't add a new use-count to CAIOSurfaces until the transaction is committed, which is after the MachSendRight (inside LayerTreeTransaction/RemoteLayerBackingStoreProperties) is destroyed.

We should run an explicit CATransaction for layer tree commits to ensure that we always have a use-count added.
Comment 1 Radar WebKit Bug Importer 2023-05-22 17:23:57 PDT
<rdar://problem/109687766>
Comment 2 Matt Woodrow 2023-05-22 17:29:13 PDT
Pull request: https://github.com/WebKit/WebKit/pull/14222
Comment 3 EWS 2023-05-26 20:48:32 PDT
Committed 264617@main (a59adccf52b4): <https://commits.webkit.org/264617@main>

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