Descriptioncc: More consistent reasoning about display list memory usage.
This refines "picture memory usage" methods to be more consistent.
In particular:
* DisplayItem::external_memory_usage_ replaces picture_memory_usage_, and only
refers to memory owned by the display item but not allocated within it (since
that memory can already be accounted for by measuring the ListContainer).
* DisplayItemList separately tracks the memory allocated within items_,
external memory usage due to those items, and memory usage due to the cached
SkPicture, when one is used. These are added to produce total memory usage.
BUG=481083
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/b0caed2bedfc19825ba34024c4678adf351d561c
Cr-Commit-Position: refs/heads/master@{#337911}
Patch Set 1 #Patch Set 2 : capacity unit test #
Total comments: 2
Patch Set 3 : merge with master #Patch Set 4 : DCHECK_EQ #Patch Set 5 : adjust DisplayItemListTest.ApproximateMemoryUsage #
Messages
Total messages: 19 (8 generated)
|