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

Issue 2821353002: Use flat_set in SurfaceAggregator. (Closed)

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

Description

Use flat_set in SurfaceAggregator. The sets and maps are typically small or empty and created once. flat_set and flat_map will have better performance for these workloads. See the bug for histograms of sizes. Reland of https://codereview.chromium.org/2823043002 with fix. BUG=712295 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel TBR=jbauman@chromium.org Review-Url: https://codereview.chromium.org/2821353002 Cr-Commit-Position: refs/heads/master@{#465324} Committed: https://chromium.googlesource.com/chromium/src/+/1ac5a973f47b2052df313bab17da120fae22190e

Patch Set 1 : Original landing #

Patch Set 2 : Fix #

Total comments: 3

Patch Set 3 : Iterator fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -37 lines) Patch
M cc/surfaces/surface_aggregator.h View 7 chunks +12 lines, -18 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 1 2 11 chunks +19 lines, -19 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
brettw
Reland of flat_set patch. PS1 is the original landing so look at the diffs between ...
3 years, 8 months ago (2017-04-18 17:46:21 UTC) #3
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/2821353002/20001
3 years, 8 months ago (2017-04-18 17:46:48 UTC) #5
danakj
https://codereview.chromium.org/2821353002/diff/20001/cc/surfaces/surface_aggregator.cc File cc/surfaces/surface_aggregator.cc (right): https://codereview.chromium.org/2821353002/diff/20001/cc/surfaces/surface_aggregator.cc#newcode340 cc/surfaces/surface_aggregator.cc:340: referenced_surfaces_.erase(referenced_surfaces_.find(surface_id)); Shouldn't this be base::Erase?
3 years, 8 months ago (2017-04-18 17:48:16 UTC) #8
danakj
https://codereview.chromium.org/2821353002/diff/20001/cc/surfaces/surface_aggregator.cc File cc/surfaces/surface_aggregator.cc (right): https://codereview.chromium.org/2821353002/diff/20001/cc/surfaces/surface_aggregator.cc#newcode340 cc/surfaces/surface_aggregator.cc:340: referenced_surfaces_.erase(referenced_surfaces_.find(surface_id)); On 2017/04/18 17:48:15, danakj wrote: > Shouldn't this ...
3 years, 8 months ago (2017-04-18 17:49:13 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/399073)
3 years, 8 months ago (2017-04-18 17:58:03 UTC) #11
brettw
Iterator fix
3 years, 8 months ago (2017-04-18 18:21:50 UTC) #12
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/2821353002/40001
3 years, 8 months ago (2017-04-18 18:22:17 UTC) #14
brettw
https://codereview.chromium.org/2821353002/diff/20001/cc/surfaces/surface_aggregator.cc File cc/surfaces/surface_aggregator.cc (right): https://codereview.chromium.org/2821353002/diff/20001/cc/surfaces/surface_aggregator.cc#newcode340 cc/surfaces/surface_aggregator.cc:340: referenced_surfaces_.erase(referenced_surfaces_.find(surface_id)); On 2017/04/18 17:49:12, danakj wrote: > On 2017/04/18 ...
3 years, 8 months ago (2017-04-18 18:26:05 UTC) #15
danakj
On Tue, Apr 18, 2017 at 2:26 PM, <brettw@chromium.org> wrote: > > https://codereview.chromium.org/2821353002/diff/20001/cc/ > surfaces/surface_aggregator.cc ...
3 years, 8 months ago (2017-04-18 18:52:05 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/1ac5a973f47b2052df313bab17da120fae22190e
3 years, 8 months ago (2017-04-18 19:22:47 UTC) #19
ojan
3 years, 8 months ago (2017-04-18 23:01:50 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2826823002/ by ojan@chromium.org.

The reason for reverting is: Broke cc_unittests
SurfaceAggregatorWithResourcesTest.SecureOutputTexture.

https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%2...

https://build.chromium.org/p/chromium.linux/builders/Linux%20Tests%20%28dbg%2....

Powered by Google App Engine
This is Rietveld 408576698