Bug 244940

Summary: [Filters] FilterImage should hold one form of the result image
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: Layout and RenderingAssignee: Said Abou-Hallawa <sabouhallawa>
Status: NEW ---    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=242219
Bug Depends on:    
Bug Blocks: 242219    

Description Said Abou-Hallawa 2022-09-08 11:43:55 PDT
Usually the software image form of FilterImage is be converted to another form; e.g. ImageBuffer -> PixelBuffer. But we rarely need both forms of image. There are instances of filters where we fail to render the filtered image just because we cache more than form of the image of FilterImage. See the test case in bug 242219.

So we should keep only one form of the image. And we can get the original form of the image from the new one if we want. This will reduce the memory needed to generate the software filtered image.
Comment 1 Said Abou-Hallawa 2022-09-08 12:10:12 PDT
Pull request: https://github.com/WebKit/WebKit/pull/4139
Comment 2 Radar WebKit Bug Importer 2022-09-15 11:44:23 PDT
<rdar://problem/99980368>