Bug 244940 - [Filters] FilterImage should hold one form of the result image
Summary: [Filters] FilterImage should hold one form of the result image
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Said Abou-Hallawa
URL:
Keywords: InRadar
Depends on:
Blocks: 242219
  Show dependency treegraph
 
Reported: 2022-09-08 11:43 PDT by Said Abou-Hallawa
Modified: 2022-09-15 11:44 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>