Chromium Code Reviews
DescriptionUse flat_set for ResourceIdSet
For DeclareUsedResourcesFromChild, the caller can accumulate into a
vector and create a flat_set from that.
ResourceProvider::wants_promotion_hints_set_ should always be small
(around 1 entry) so it should be more efficient as a flat_set.
Also remove Child::parent_to_child_map and store the child id directly
in the Resource, to avoid unnecessary map lookups on resource creation
and destruction.
This improves the performance of SurfaceAggregatorPerfTest.* by 25-30%
BUG=712295
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2826583002
Cr-Commit-Position: refs/heads/master@{#465064}
Committed: https://chromium.googlesource.com/chromium/src/+/2ef85417acbbcbb4e8852bed450ea7ac3a5965b8
Patch Set 1 #
Messages
Total messages: 16 (11 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||