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

Issue 11418108: cc: Make the ScopedPtrVector and ScopedPtrDeque containers act like STL vector and deque. (Closed)

Created:
8 years, 1 month ago by danakj
Modified:
7 years, 11 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Make the ScopedPtrVector and ScopedPtrDeque containers act like STL vector and deque. These classes used methods to match the webcore classes and ease migration. Now they are at odds with the STL versions of these containers. Rename the methods, and change arguments from indexes to iterators, to match the STL containers. isEmpty() => empty() last() => back() first() => front() Peek() => at() append() => push_back() insert(index, value) => insert(iterator, value) remove(index) => erase(iterator) and erase(iterator, iterator) take(index) => take(iterator) takeFront() => take_front() takeBack() => take_back() Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175722

Patch Set 1 #

Patch Set 2 : Rename ALL the functions #

Patch Set 3 : Add DCHECK #

Total comments: 4

Patch Set 4 : rebase-on-animationrename #

Patch Set 5 : fix-compile #

Patch Set 6 : fix-compile-more #

Patch Set 7 : For great bot justice #

Patch Set 8 : android!! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -199 lines) Patch
M cc/cc.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/delegated_renderer_layer_impl.cc View 1 2 3 4 5 6 5 chunks +9 lines, -9 lines 0 comments Download
M cc/direct_renderer.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/gl_renderer_pixeltest.cc View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M cc/gl_renderer_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/keyframed_animation_curve.cc View 1 5 chunks +13 lines, -13 lines 0 comments Download
M cc/layer_animation_controller.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_animation_controller.cc View 1 2 3 4 5 6 6 chunks +39 lines, -29 lines 0 comments Download
M cc/layer_impl.cc View 1 2 3 4 5 6 2 chunks +6 lines, -6 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 5 6 6 chunks +8 lines, -9 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M cc/layer_tree_host_unittest_context.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M cc/layer_tree_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/picture_layer_tiling_set.cc View 1 2 3 3 chunks +11 lines, -11 lines 0 comments Download
M cc/quad_culler.cc View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M cc/render_pass.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M cc/render_pass_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M cc/render_surface_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/resource_provider_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A cc/scoped_ptr_algorithm.h View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
M cc/scoped_ptr_deque.h View 1 2 3 4 5 6 7 3 chunks +50 lines, -22 lines 0 comments Download
M cc/scoped_ptr_vector.h View 1 2 3 4 5 6 7 3 chunks +76 lines, -25 lines 0 comments Download
M cc/software_renderer_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/mock_quad_culler.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/render_pass_test_common.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M cc/test/render_pass_test_utils.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/texture_uploader.cc View 1 2 3 3 chunks +10 lines, -10 lines 0 comments Download
M cc/tile_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/tree_synchronizer.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/cc_messages.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M content/common/cc_messages_unittest.cc View 1 2 3 4 5 4 chunks +23 lines, -22 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
danakj
8 years, 1 month ago (2012-11-21 01:54:09 UTC) #1
enne (OOO)
Were you planning to convert the other functions that don't match, e.g. last => back ...
8 years, 1 month ago (2012-11-21 02:03:18 UTC) #2
danakj
Oh, thanks, good idea.
8 years, 1 month ago (2012-11-21 02:03:55 UTC) #3
danakj
On 2012/11/21 02:03:18, enne wrote: > Were you planning to convert the other functions that ...
8 years, 1 month ago (2012-11-21 03:31:25 UTC) #4
enne (OOO)
https://codereview.chromium.org/11418108/diff/7020/cc/scoped_ptr_deque.h File cc/scoped_ptr_deque.h (right): https://codereview.chromium.org/11418108/diff/7020/cc/scoped_ptr_deque.h#newcode57 cc/scoped_ptr_deque.h:57: scoped_ptr<T> take_front() { I know take is convenient, but ...
8 years, 1 month ago (2012-11-21 04:12:57 UTC) #5
danakj
https://codereview.chromium.org/11418108/diff/7020/cc/scoped_ptr_deque.h File cc/scoped_ptr_deque.h (right): https://codereview.chromium.org/11418108/diff/7020/cc/scoped_ptr_deque.h#newcode57 cc/scoped_ptr_deque.h:57: scoped_ptr<T> take_front() { On 2012/11/21 04:12:57, enne wrote: > ...
8 years, 1 month ago (2012-11-21 04:23:21 UTC) #6
enne (OOO)
I was having this line of reasoning where cc's scoped_ptr_foo containers should be made to ...
8 years, 1 month ago (2012-11-21 16:45:02 UTC) #7
danakj
On 2012/11/21 16:45:02, enne wrote: > I was having this line of reasoning where cc's ...
7 years, 11 months ago (2013-01-07 16:42:01 UTC) #8
danakj
+piman and cdn for the trivial cc_messages change
7 years, 11 months ago (2013-01-07 17:53:45 UTC) #9
danakj
PTAL. This is updated against HEAD, and I didn't remove any take() methods as per ...
7 years, 11 months ago (2013-01-07 23:03:12 UTC) #10
enne (OOO)
lgtm
7 years, 11 months ago (2013-01-07 23:17:24 UTC) #11
danakj
thanks :)
7 years, 11 months ago (2013-01-07 23:24:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11418108/32001
7 years, 11 months ago (2013-01-07 23:27:25 UTC) #13
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) content_browsertests
7 years, 11 months ago (2013-01-08 00:38:24 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11418108/32001
7 years, 11 months ago (2013-01-08 00:59:33 UTC) #15
piman
lgtm
7 years, 11 months ago (2013-01-08 02:03:41 UTC) #16
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) content_browsertests
7 years, 11 months ago (2013-01-08 02:07:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11418108/32001
7 years, 11 months ago (2013-01-08 03:07:01 UTC) #18
danakj
Ok, added cc::remove_if() and banned assignment to iterators (*it = foo) for ScopedPtrVector and ScopedPtrDeque ...
7 years, 11 months ago (2013-01-08 21:29:38 UTC) #19
Cris Neckar
IPC security review LGTM
7 years, 11 months ago (2013-01-08 22:51:06 UTC) #20
danakj
Apparently on android, iterators are not classes, so we can't block assignment to them for ...
7 years, 11 months ago (2013-01-08 22:52:10 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11418108/54001
7 years, 11 months ago (2013-01-09 00:01:52 UTC) #22
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-09 03:10:02 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11418108/54001
7 years, 11 months ago (2013-01-09 03:12:06 UTC) #24
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 11 months ago (2013-01-09 03:13:32 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11418108/54001
7 years, 11 months ago (2013-01-09 03:14:34 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11418108/54001
7 years, 11 months ago (2013-01-09 05:02:51 UTC) #27
commit-bot: I haz the power
7 years, 11 months ago (2013-01-09 07:22:46 UTC) #28
Message was sent while issue was closed.
Change committed as 175722

Powered by Google App Engine
This is Rietveld 408576698