DescriptionSet 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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284793
Patch Set 1 #
Total comments: 4
Patch Set 2 : response to revman comments #Messages
Total messages: 13 (0 generated)
|