Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Issue 2826583002: Use flat_set for ResourceIdSet (Closed)

Created:
3 years, 8 months ago by jbauman
Modified:
3 years, 8 months ago
Reviewers:
brettw, enne (OOO)
CC:
brettw, cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -12 lines) Patch
M cc/base/resource_id.h View 1 chunk +3 lines, -2 lines 0 comments Download
M cc/resources/resource_provider.h View 2 chunks +1 line, -1 line 0 comments Download
M cc/resources/resource_provider.cc View 4 chunks +3 lines, -6 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 3 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
jbauman
3 years, 8 months ago (2017-04-17 23:04:14 UTC) #5
brettw
Awesome, thanks! LGTM
3 years, 8 months ago (2017-04-17 23:34:13 UTC) #9
enne (OOO)
lgtm
3 years, 8 months ago (2017-04-17 23:34:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2826583002/1
3 years, 8 months ago (2017-04-17 23:35:51 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-17 23:48:57 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/2ef85417acbbcbb4e8852bed450e...

Powered by Google App Engine
This is Rietveld 408576698