Bug 256408

Summary: [GPU Process] Cache all RenderingResources as one type
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   
Bug Depends on:    
Bug Blocks: 232845    

Said Abou-Hallawa
Reported 2023-05-05 19:39:17 PDT
This makes adding a new RenderingResource less pervasive. RenderingResources are mainly cached to control their lifetime between WebProcess and GPUProcess. Their concrete types are rarely used especially in WebProcess. So replace the pointers to NativeImage, DecomposedGlyphs and Gradient to just a pointer to RenderingResource. Add to these classes traits so RenderingResource can be casted to any of them.
Attachments
Radar WebKit Bug Importer
Comment 1 2023-05-05 19:42:32 PDT
Said Abou-Hallawa
Comment 2 2023-05-05 19:44:42 PDT
EWS
Comment 3 2023-05-08 14:19:39 PDT
Committed 263824@main (d67761f1060a): <https://commits.webkit.org/263824@main> Reviewed commits have been landed. Closing PR #13530 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.