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

Issue 1340703002: cc: Add RandomAccessListContainer, which has more restricted API. (Closed)

Created:
5 years, 3 months ago by vmpstr
Modified:
5 years, 3 months ago
Reviewers:
danakj, weiliangc
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: Add RandomAccessListContainer, which has more restricted API. This patch adds RandomAccessListContainer, which is similar to ListContainer with two important differences: - It supports random access via operator[] - This is important for DisplayItemList use-case where an access into an rtree returns indices of elements to be rasterized. With this, we can access those elements directly. - It doesn't support middle-of-list operations (inserts/deletes) - This is done in order to simplify maintaining random access capabilities BUG=527245 R=weiliangc, danakj CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/b10241fcd596d102733731b3d2db8e9ba875e41c Cr-Commit-Position: refs/heads/master@{#349564}

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : update #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 19

Patch Set 9 : rebase #

Patch Set 10 : #

Patch Set 11 : update #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -0 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/base/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/base/list_container_helper.h View 1 2 3 5 7 1 chunk +3 lines, -0 lines 0 comments Download
A cc/base/random_access_list_container.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +94 lines, -0 lines 0 comments Download
A cc/base/random_access_list_container_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +107 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (6 generated)
vmpstr
Please take a look. This depends on https://codereview.chromium.org/1336763006/. Also, let me know if you'd prefer ...
5 years, 3 months ago (2015-09-14 18:34:50 UTC) #1
weiliangc
We can add comment to RandomAccessListContainer to say it's used for DisplayItemList and its general ...
5 years, 3 months ago (2015-09-14 20:02:47 UTC) #2
vmpstr
https://codereview.chromium.org/1340703002/diff/20001/cc/base/list_container.h File cc/base/list_container.h (right): https://codereview.chromium.org/1340703002/diff/20001/cc/base/list_container.h#newcode561 cc/base/list_container.h:561: const BaseElementType* operator[](size_t index) const { On 2015/09/14 20:02:47, ...
5 years, 3 months ago (2015-09-15 00:17:48 UTC) #3
weiliangc
On 2015/09/15 at 00:17:48, vmpstr wrote: > https://codereview.chromium.org/1340703002/diff/20001/cc/base/list_container.h > File cc/base/list_container.h (right): > > https://codereview.chromium.org/1340703002/diff/20001/cc/base/list_container.h#newcode561 ...
5 years, 3 months ago (2015-09-15 15:25:16 UTC) #4
weiliangc
https://codereview.chromium.org/1340703002/diff/60001/cc/base/random_access_list_container.h File cc/base/random_access_list_container.h (right): https://codereview.chromium.org/1340703002/diff/60001/cc/base/random_access_list_container.h#newcode72 cc/base/random_access_list_container.h:72: const BaseElementType* operator[](size_t index) const { BaseElementType* const here?
5 years, 3 months ago (2015-09-15 15:25:40 UTC) #5
vmpstr
Please take a look > I'm thinking at DisplayList level might be hard to tell ...
5 years, 3 months ago (2015-09-15 18:10:25 UTC) #6
vmpstr
As per discussion, also added a comment. PTAL
5 years, 3 months ago (2015-09-15 18:54:43 UTC) #7
weiliangc
LGTM https://codereview.chromium.org/1340703002/diff/140001/cc/base/random_access_list_container.h File cc/base/random_access_list_container.h (right): https://codereview.chromium.org/1340703002/diff/140001/cc/base/random_access_list_container.h#newcode72 cc/base/random_access_list_container.h:72: const BaseElementType* operator[](size_t index) const { nit: // ...
5 years, 3 months ago (2015-09-15 19:01:17 UTC) #8
danakj
> - It supports random access via operator[] > - It doesn't support middle-of-list operations ...
5 years, 3 months ago (2015-09-15 20:11:09 UTC) #9
vmpstr
On 2015/09/15 20:11:09, danakj wrote: > > - It supports random access via operator[] > ...
5 years, 3 months ago (2015-09-15 20:20:00 UTC) #10
danakj
https://codereview.chromium.org/1340703002/diff/140001/cc/base/random_access_list_container.h File cc/base/random_access_list_container.h (right): https://codereview.chromium.org/1340703002/diff/140001/cc/base/random_access_list_container.h#newcode30 cc/base/random_access_list_container.h:30: // This constructor omits input variable for max_size_for_derived_class. This ...
5 years, 3 months ago (2015-09-15 20:21:37 UTC) #11
vmpstr
PTAL. https://codereview.chromium.org/1340703002/diff/140001/cc/base/random_access_list_container.h File cc/base/random_access_list_container.h (right): https://codereview.chromium.org/1340703002/diff/140001/cc/base/random_access_list_container.h#newcode30 cc/base/random_access_list_container.h:30: // This constructor omits input variable for max_size_for_derived_class. ...
5 years, 3 months ago (2015-09-15 21:05:52 UTC) #12
danakj
LGTM https://codereview.chromium.org/1340703002/diff/140001/cc/base/random_access_list_container.h File cc/base/random_access_list_container.h (right): https://codereview.chromium.org/1340703002/diff/140001/cc/base/random_access_list_container.h#newcode78 cc/base/random_access_list_container.h:78: BaseElementType* operator[](size_t index) { On 2015/09/15 21:05:52, vmpstr ...
5 years, 3 months ago (2015-09-15 21:19:50 UTC) #13
vmpstr
https://codereview.chromium.org/1340703002/diff/140001/cc/base/random_access_list_container.h File cc/base/random_access_list_container.h (right): https://codereview.chromium.org/1340703002/diff/140001/cc/base/random_access_list_container.h#newcode92 cc/base/random_access_list_container.h:92: std::deque<BaseElementType*> items_; On 2015/09/15 21:19:50, danakj wrote: > On ...
5 years, 3 months ago (2015-09-15 22:06:58 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1340703002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1340703002/220001
5 years, 3 months ago (2015-09-17 21:29:07 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-17 23:14:11 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1340703002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1340703002/220001
5 years, 3 months ago (2015-09-18 01:03:58 UTC) #23
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 3 months ago (2015-09-18 01:10:21 UTC) #24
commit-bot: I haz the power
5 years, 3 months ago (2015-09-18 01:11:05 UTC) #25
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/b10241fcd596d102733731b3d2db8e9ba875e41c
Cr-Commit-Position: refs/heads/master@{#349564}

Powered by Google App Engine
This is Rietveld 408576698