NEW 158264
SVGImage should honor the existing WebCore::MemoryCache mechanism for throwing away decoded image data on demand
https://bugs.webkit.org/show_bug.cgi?id=158264
Summary SVGImage should honor the existing WebCore::MemoryCache mechanism for throwin...
Said Abou-Hallawa
Reported 2016-06-01 09:04:43 PDT
SVGImage needs to implement the virtual function SVGImage::destroyDecodedData() which should destroy the DOM and the render trees. It should also be able to create them on demand. Currently it creates them only when all data is received in SVGImage::dataChanged(). The DOM and render trees are purgeable data. They can be rebuilt from the SVGImage encoded data. They take too much memory compared to the encoded data especially when the SVG contains paths or polygons. This implementation should save a lot of memory and allow more SVGImages to be cached.
Attachments
Said Abou-Hallawa
Comment 1 2016-06-01 09:06:30 PDT
Note You need to log in before you can comment on or make changes to this bug.