Set ImageCacheSingleAllocationByteLimit to 64MB
This variable is the maximum allocation size allowed for (high-quality) image scaling filters that require pre-scaling (and caching of the results). Skia will fallback to a filter that doesn't require pre-scaling if the selected filter would require an allocation that exceeds this limit. Motivation: If a web page scales an image by a large factor, the resulting bitmap may take up quite a bit of space - this will clobber Skia's Scaled Image Cache and other caches that share a quota with the Scaled Image Cache. See SkGraphics.h for more documentation. Future work: Someone may want to tune this value based on device memory size. BUG=389439 Review URL: https://codereview.chromium.org/397193002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284793 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment