Bug 106484

Summary: SVG-as-image: Throw out cached bitmap renderings after they sit unused for some time.
Product: WebKit Reporter: Andreas Kling <kling>
Component: SVGAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, d-r, fmalita, koivisto, pdr, psolanki, schenney, webkit-bug-importer, webkit.review.bot, zimmermann
Priority: P2 Keywords: InRadar, Performance
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Proposed patch none

Description Andreas Kling 2013-01-09 12:26:56 PST
We currently cache the bitmaps for SVG files rendered into image elements to optimize repeated repaints.
We should throw out the cached bitmaps after some time if they aren't used to conserve memory.
~10MB is wasted on this on Membuster3.
Comment 1 Radar WebKit Bug Importer 2013-01-09 12:27:10 PST
<rdar://problem/12983216>
Comment 2 Andreas Kling 2013-01-09 12:29:41 PST
Created attachment 181969 [details]
Proposed patch
Comment 3 Pratik Solanki 2013-01-09 12:40:02 PST
We should also do this on memory warnings like bug 106471. But that can be a separate bug.
Comment 4 WebKit Review Bot 2013-01-09 13:52:33 PST
Comment on attachment 181969 [details]
Proposed patch

Clearing flags on attachment: 181969

Committed r139236: <http://trac.webkit.org/changeset/139236>
Comment 5 WebKit Review Bot 2013-01-09 13:52:37 PST
All reviewed patches have been landed.  Closing bug.