Bug 242499

Summary: [GPU Process] Under memory pressure WebPage should release its cached shared NativeImages
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: Layout and RenderingAssignee: Said Abou-Hallawa <sabouhallawa>
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 Said Abou-Hallawa 2022-07-08 01:07:12 PDT
WebProcess::initializeWebProcess() sets a low memory pressure handler. This handler loops through the WebPages and call WebPage::releaseMemory() for every one. This function just calls RemoteResourceCacheProxy::releaseMemory() but this function does not release the cached shared NativeImages.
Comment 1 Said Abou-Hallawa 2022-07-08 01:25:44 PDT
Pull request: https://github.com/WebKit/WebKit/pull/2214
Comment 2 Radar WebKit Bug Importer 2022-07-08 01:28:34 PDT
<rdar://problem/96656391>
Comment 3 EWS 2022-07-08 11:42:03 PDT
Committed 252286@main (a07f7ff6ab85): <https://commits.webkit.org/252286@main>

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