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

Issue 1587283002: Switch cc to std::unordered_*. (Closed)

Created:
4 years, 11 months ago by davidben
Modified:
4 years, 10 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@unordered-map
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch cc to std::unordered_*. This removes all uses of base::hash_*, BASE_HASH_NAMESPACE, and base::ScopedPtrHashMap in favor of the C++11 versions. BUG=576864, 579229 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/5877ffe39d049730251b7f49f890c820e26643fa Cr-Commit-Position: refs/heads/master@{#371937}

Patch Set 1 #

Total comments: 10

Patch Set 2 : rebase #

Patch Set 3 : danakj comments #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : Fix MSVC build issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -211 lines) Patch
M cc/animation/animation_host.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M cc/animation/animation_host.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M cc/animation/animation_registrar.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M cc/animation/animation_timeline.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/animation/layer_animation_controller.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M cc/debug/frame_timing_tracker.h View 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/delegated_frame_resource_collection.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/delegated_renderer_layer.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/delegated_renderer_layer_impl.h View 2 chunks +5 lines, -2 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/layer_proto_converter.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M cc/layers/nine_patch_layer_impl_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M cc/output/direct_renderer.h View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M cc/output/direct_renderer.cc View 1 2 3 4 5 6 chunks +11 lines, -12 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/quads/render_pass.h View 1 2 2 chunks +4 lines, -14 lines 0 comments Download
M cc/quads/render_pass_id.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M cc/raster/task_graph_runner.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/raster/task_graph_work_queue.cc View 2 chunks +2 lines, -1 line 0 comments Download
M cc/resources/resource_provider.h View 1 2 4 chunks +7 lines, -6 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M cc/surfaces/surface.h View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/surfaces/surface.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/surfaces/surface_aggregator.h View 1 2 3 4 5 3 chunks +2 lines, -4 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M cc/surfaces/surface_factory.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M cc/surfaces/surface_factory.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/surfaces/surface_id.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M cc/surfaces/surface_manager.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M cc/surfaces/surface_resource_holder.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M cc/surfaces/surface_sequence.h View 1 2 chunks +4 lines, -8 lines 0 comments Download
M cc/test/animation_timelines_test_common.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M cc/test/animation_timelines_test_common.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/fake_ui_resource_layer_tree_host_impl.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M cc/test/ordered_texture_map.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M cc/test/test_texture.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 1 2 3 4 chunks +10 lines, -10 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.cc View 1 2 3 7 chunks +15 lines, -15 lines 0 comments Download
M cc/tiles/image_decode_controller.h View 1 6 chunks +12 lines, -15 lines 0 comments Download
M cc/tiles/picture_layer_tiling.h View 1 2 3 4 5 6 7 chunks +10 lines, -17 lines 0 comments Download
M cc/tiles/picture_layer_tiling.cc View 1 2 8 chunks +14 lines, -11 lines 0 comments Download
M cc/tiles/tile_manager.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 4 chunks +7 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/tree_synchronizer.cc View 1 2 4 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 30 (14 generated)
danakj
LGTM https://codereview.chromium.org/1587283002/diff/1/cc/animation/animation_registrar.h File cc/animation/animation_registrar.h (right): https://codereview.chromium.org/1587283002/diff/1/cc/animation/animation_registrar.h#newcode22 cc/animation/animation_registrar.h:22: typedef std::unordered_map<int, LayerAnimationController*> would you mind changing "typedef" ...
4 years, 11 months ago (2016-01-14 21:12:32 UTC) #3
davidben
(Will address comments and update CL after parent commit goes through to save myself git ...
4 years, 11 months ago (2016-01-14 21:28:19 UTC) #4
danakj
https://codereview.chromium.org/1587283002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/1587283002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode3293 cc/trees/layer_tree_host_impl.cc:3293: // TODO(davidben): Is this the same as using operator[]? ...
4 years, 11 months ago (2016-01-14 21:31:54 UTC) #5
davidben
Addressed comments. Though, as I write this, it looks like the parent CL is about ...
4 years, 11 months ago (2016-01-21 01:33:58 UTC) #7
danakj
LGTM, thanks very much for fixing all the type aliases.
4 years, 11 months ago (2016-01-21 19:37:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1587283002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1587283002/80001
4 years, 11 months ago (2016-01-23 00:02:14 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/135389)
4 years, 11 months ago (2016-01-23 01:24:43 UTC) #15
davidben
On 2016/01/23 01:24:43, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 10 months ago (2016-01-27 21:47:48 UTC) #16
danakj
That sounds like https://groups.google.com/a/chromium.org/forum/?utm_medium=email&utm_source=footer#!msg/cxx/Pdi5AnsVceo/9MA7VN27BAAJ
4 years, 10 months ago (2016-01-27 21:50:43 UTC) #17
davidben
On 2016/01/27 21:47:48, davidben (slow) wrote: > On 2016/01/23 01:24:43, commit-bot: I haz the power ...
4 years, 10 months ago (2016-01-27 21:52:10 UTC) #18
danakj
On Wed, Jan 27, 2016 at 1:52 PM, <davidben@chromium.org> wrote: > > On 2016/01/27 21:47:48, ...
4 years, 10 months ago (2016-01-27 21:55:11 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1587283002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1587283002/120001
4 years, 10 months ago (2016-01-27 22:47:40 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-01-28 00:10:29 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1587283002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1587283002/120001
4 years, 10 months ago (2016-01-28 00:11:23 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-01-28 00:30:00 UTC) #28
commit-bot: I haz the power
4 years, 10 months ago (2016-01-28 00:35:30 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5877ffe39d049730251b7f49f890c820e26643fa
Cr-Commit-Position: refs/heads/master@{#371937}

Powered by Google App Engine
This is Rietveld 408576698