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

Issue 1437413002: cc: Remove ScopedPtrVector and cc::remove_if. (Closed)

Created:
5 years, 1 month ago by vmpstr
Modified:
5 years, 1 month ago
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Remove ScopedPtrVector and cc::remove_if. This patch removes ScopedPtrVector and cc::remove_if. It depends on https://codereview.chromium.org/1441613002 for TakeBack. R=danakj CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/a370ef52788ea0f6c410b05ec40a74ee9bf3a647 Cr-Commit-Position: refs/heads/master@{#360318}

Patch Set 1 #

Patch Set 2 : everything for trybots #

Patch Set 3 : just the vector #

Total comments: 145

Patch Set 4 : #

Patch Set 5 : update #

Total comments: 8

Patch Set 6 : rebase + fix #

Total comments: 2

Patch Set 7 : dcheng's review #

Patch Set 8 : win compile fix #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+748 lines, -1210 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M cc/PRESUBMIT.py View 1 chunk +1 line, -3 lines 0 comments Download
M cc/animation/animation_player.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M cc/animation/animation_player.cc View 1 2 3 4 2 chunks +8 lines, -4 lines 0 comments Download
M cc/animation/keyframed_animation_curve.h View 1 2 3 4 5 chunks +6 lines, -5 lines 0 comments Download
M cc/animation/keyframed_animation_curve.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M cc/animation/layer_animation_controller.h View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M cc/animation/layer_animation_controller.cc View 1 2 3 4 13 chunks +50 lines, -68 lines 0 comments Download
M cc/base/BUILD.gn View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M cc/base/list_container_helper.cc View 1 2 3 4 8 chunks +11 lines, -11 lines 0 comments Download
D cc/base/scoped_ptr_algorithm.h View 1 chunk +0 lines, -30 lines 0 comments Download
D cc/base/scoped_ptr_vector.h View 1 chunk +0 lines, -224 lines 0 comments Download
D cc/base/scoped_ptr_vector_unittest.cc View 1 chunk +0 lines, -184 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M cc/cc_tests.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M cc/debug/debug_rect_history.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/debug/micro_benchmark_controller.h View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/debug/micro_benchmark_controller.cc View 1 2 3 4 5 4 chunks +18 lines, -28 lines 0 comments Download
M cc/debug/micro_benchmark_controller_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/debug/micro_benchmark_controller_impl.cc View 1 2 3 4 3 chunks +7 lines, -20 lines 0 comments Download
M cc/layers/delegated_frame_provider.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/delegated_renderer_layer_impl.cc View 6 chunks +6 lines, -8 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/heads_up_display_layer_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/heads_up_display_layer_impl.cc View 1 2 3 4 5 2 chunks +8 lines, -20 lines 0 comments Download
M cc/layers/layer.h View 2 chunks +1 line, -2 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 2 chunks +7 lines, -8 lines 0 comments Download
M cc/layers/layer_impl.h View 4 chunks +4 lines, -5 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 4 chunks +11 lines, -8 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/layers/layer_lists.h View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/layers/layer_position_constraint_unittest.cc View 1 2 3 4 5 5 chunks +15 lines, -11 lines 0 comments Download
M cc/layers/layer_utils_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 7 chunks +8 lines, -7 lines 0 comments Download
M cc/layers/render_surface_unittest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 7 chunks +10 lines, -10 lines 0 comments Download
M cc/output/bsp_tree.h View 1 2 4 chunks +7 lines, -8 lines 0 comments Download
M cc/output/bsp_tree.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M cc/output/bsp_tree_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cc/output/direct_renderer.cc View 1 2 3 4 5 4 chunks +15 lines, -17 lines 0 comments Download
M cc/output/gl_renderer.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M cc/output/overlay_processor.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/output/overlay_processor.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M cc/output/overlay_strategy_sandwich.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 4 5 12 chunks +18 lines, -13 lines 0 comments Download
M cc/output/renderer.h View 2 chunks +1 line, -2 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M cc/output/texture_mailbox_deleter.h View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/output/texture_mailbox_deleter.cc View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M cc/quads/render_pass.h View 8 4 chunks +5 lines, -5 lines 0 comments Download
M cc/quads/render_pass.cc View 1 2 3 4 1 chunk +3 lines, -5 lines 0 comments Download
M cc/quads/render_pass_unittest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M cc/surfaces/display.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/surfaces/surface.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/surfaces/surface_aggregator_unittest.cc View 1 2 3 4 17 chunks +31 lines, -30 lines 0 comments Download
M cc/surfaces/surface_hittest.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M cc/surfaces/surface_hittest_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/layer_tree_json_parser_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/pixel_test.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M cc/test/render_pass_test_utils.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/surface_aggregator_test_helpers.h View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/test/surface_aggregator_test_helpers.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/surface_hittest_test_helpers.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/tiles/eviction_tile_priority_queue.h View 1 chunk +4 lines, -4 lines 0 comments Download
M cc/tiles/eviction_tile_priority_queue.cc View 1 2 3 4 4 chunks +22 lines, -15 lines 0 comments Download
M cc/tiles/picture_layer_tiling_set.h View 3 chunks +3 lines, -4 lines 0 comments Download
M cc/tiles/picture_layer_tiling_set.cc View 1 2 3 4 5 20 chunks +58 lines, -49 lines 0 comments Download
M cc/tiles/raster_tile_priority_queue_all.h View 1 chunk +4 lines, -4 lines 0 comments Download
M cc/tiles/raster_tile_priority_queue_all.cc View 1 2 3 4 4 chunks +21 lines, -15 lines 0 comments Download
M cc/tiles/raster_tile_priority_queue_required.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/tiles/raster_tile_priority_queue_required.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/damage_tracker_unittest.cc View 1 2 3 27 chunks +37 lines, -37 lines 0 comments Download
M cc/trees/layer_tree_host.h View 2 chunks +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 2 chunks +3 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_common.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 1 chunk +6 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_common_perftest.cc View 1 2 3 chunks +2 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 5 chunks +5 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 7 chunks +10 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 37 chunks +69 lines, -56 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 11 chunks +15 lines, -15 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation_timelines.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_copyrequest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_damage.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_delegated.cc View 22 chunks +42 lines, -23 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_occlusion.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_picture.cc View 10 chunks +17 lines, -14 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_video.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_impl.h View 3 chunks +3 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 chunks +12 lines, -12 lines 0 comments Download
M cc/trees/layer_tree_impl_unittest.cc View 6 chunks +12 lines, -12 lines 0 comments Download
M cc/trees/occlusion_tracker_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/tree_synchronizer.cc View 1 2 3 4 2 chunks +3 lines, -6 lines 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/compositor/delegated_frame_host.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/common/cc_messages.cc View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M content/common/cc_messages_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -6 lines 0 comments Download
M content/renderer/child_frame_compositing_helper.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/layer.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M ui/compositor/layer.cc View 1 2 3 4 4 chunks +10 lines, -29 lines 0 comments Download

Messages

Total messages: 37 (16 generated)
vmpstr
5 years, 1 month ago (2015-11-13 09:38:05 UTC) #1
ericrk
one comment so far :D - still revieiwing https://codereview.chromium.org/1437413002/diff/130001/cc/animation/layer_animation_controller.cc File cc/animation/layer_animation_controller.cc (right): https://codereview.chromium.org/1437413002/diff/130001/cc/animation/layer_animation_controller.cc#newcode738 cc/animation/layer_animation_controller.cc:738: })); ...
5 years, 1 month ago (2015-11-16 19:20:52 UTC) #8
danakj
Can you make sure this builds on top of https://codereview.chromium.org/1440593004/?
5 years, 1 month ago (2015-11-16 19:42:13 UTC) #9
ericrk
lgtm Looks good other than a couple minor comments! https://codereview.chromium.org/1437413002/diff/130001/cc/layers/layer_impl.cc File cc/layers/layer_impl.cc (right): https://codereview.chromium.org/1437413002/diff/130001/cc/layers/layer_impl.cc#newcode280 cc/layers/layer_impl.cc:280: ...
5 years, 1 month ago (2015-11-16 21:59:49 UTC) #10
danakj
The good thing about a CL that touches all the code, is that then the ...
5 years, 1 month ago (2015-11-17 01:12:19 UTC) #11
vmpstr
PTAL https://codereview.chromium.org/1437413002/diff/130001/cc/animation/animation_player.cc File cc/animation/animation_player.cc (right): https://codereview.chromium.org/1437413002/diff/130001/cc/animation/animation_player.cc#newcode108 cc/animation/animation_player.cc:108: for (auto it = animations_.begin(); it != animations_.end(); ...
5 years, 1 month ago (2015-11-17 23:26:26 UTC) #12
danakj
LGTM https://codereview.chromium.org/1437413002/diff/170001/cc/debug/micro_benchmark_controller.cc File cc/debug/micro_benchmark_controller.cc (right): https://codereview.chromium.org/1437413002/diff/170001/cc/debug/micro_benchmark_controller.cc#newcode82 cc/debug/micro_benchmark_controller.cc:82: return it != benchmarks_.end() ? (*it)->ProcessMessage(value.Pass()) : false; ...
5 years, 1 month ago (2015-11-17 23:49:41 UTC) #13
vmpstr
https://codereview.chromium.org/1437413002/diff/170001/cc/debug/micro_benchmark_controller.cc File cc/debug/micro_benchmark_controller.cc (right): https://codereview.chromium.org/1437413002/diff/170001/cc/debug/micro_benchmark_controller.cc#newcode82 cc/debug/micro_benchmark_controller.cc:82: return it != benchmarks_.end() ? (*it)->ProcessMessage(value.Pass()) : false; On ...
5 years, 1 month ago (2015-11-18 00:08:46 UTC) #14
vmpstr
+sievers for content/ +dcheng for content/common/cc_messages.cc
5 years, 1 month ago (2015-11-18 00:13:03 UTC) #16
dcheng
https://codereview.chromium.org/1437413002/diff/190001/content/common/cc_messages.cc File content/common/cc_messages.cc (right): https://codereview.chromium.org/1437413002/diff/190001/content/common/cc_messages.cc#newcode683 content/common/cc_messages.cc:683: const cc::RenderPass* pass = p.render_pass_list[i].get(); Would this work instead? ...
5 years, 1 month ago (2015-11-18 00:47:10 UTC) #17
vmpstr
PTAL https://codereview.chromium.org/1437413002/diff/190001/content/common/cc_messages.cc File content/common/cc_messages.cc (right): https://codereview.chromium.org/1437413002/diff/190001/content/common/cc_messages.cc#newcode683 content/common/cc_messages.cc:683: const cc::RenderPass* pass = p.render_pass_list[i].get(); On 2015/11/18 00:47:10, ...
5 years, 1 month ago (2015-11-18 00:53:44 UTC) #18
dcheng
cc_messages.cc lgtm
5 years, 1 month ago (2015-11-18 00:59:23 UTC) #19
vmpstr
+piman for content as well.
5 years, 1 month ago (2015-11-18 01:00:20 UTC) #21
no sievers
content lgtm
5 years, 1 month ago (2015-11-18 01:06:06 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1437413002/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1437413002/210001
5 years, 1 month ago (2015-11-18 01:08:34 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/79316)
5 years, 1 month ago (2015-11-18 01:51:27 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1437413002/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1437413002/210001
5 years, 1 month ago (2015-11-18 03:46:54 UTC) #29
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/110128)
5 years, 1 month ago (2015-11-18 04:54:01 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1437413002/290001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1437413002/290001
5 years, 1 month ago (2015-11-18 09:19:29 UTC) #35
commit-bot: I haz the power
Committed patchset #10 (id:290001)
5 years, 1 month ago (2015-11-18 10:41:37 UTC) #36
commit-bot: I haz the power
5 years, 1 month ago (2015-11-18 10:42:39 UTC) #37
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/a370ef52788ea0f6c410b05ec40a74ee9bf3a647
Cr-Commit-Position: refs/heads/master@{#360318}

Powered by Google App Engine
This is Rietveld 408576698