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

Issue 551013002: Use Custome ListContainer to Allocate SharedQuadState (Closed)

Created:
6 years, 3 months ago by weiliangc
Modified:
6 years, 2 months ago
Reviewers:
danakj, jamesr, kenrb
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, cc-bugs_chromium.org, ben+mojo_chromium.org, darin (slow to review), Ian Vollick, enne (OOO), piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@DQAllo
Project:
chromium
Visibility:
Public.

Description

Use Custome ListContainer to Allocate SharedQuadState In RenderPass use ListContainer for generating SharedQuadState and act as SharedQuadStateList. This CL follows 448303002 which use ListContainer for DrawQuad. BUG=344962 Committed: https://crrev.com/808f70fa59631bb0fc9d0e0fd7e5956d0f1c052a Cr-Commit-Position: refs/heads/master@{#298107}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase to latest list container #

Patch Set 4 : rebase #

Patch Set 5 : RP ctor takes sqs_list_size and dq_list_size #

Patch Set 6 : use ElementAt for unittest #

Total comments: 45

Patch Set 7 : explicitly compare sizt_t with 0 instead #

Patch Set 8 : fine lemme try std::max #

Patch Set 9 : move check for non-0 reserve from RP to ListContainer #

Patch Set 10 : use index() function from iterators #

Patch Set 11 : address most review comments #

Patch Set 12 : use C++ range based loop #

Total comments: 30

Patch Set 13 : address review comments #

Total comments: 1

Patch Set 14 : mojo review comments addressed #

Total comments: 5

Patch Set 15 : review comments addressed #

Patch Set 16 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -250 lines) Patch
M cc/layers/nine_patch_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -7 lines 0 comments Download
M cc/layers/render_surface_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/tiled_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M cc/quads/list_container.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +47 lines, -6 lines 0 comments Download
M cc/quads/list_container.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +64 lines, -28 lines 0 comments Download
M cc/quads/list_container_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +27 lines, -0 lines 0 comments Download
M cc/quads/render_pass.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -1 line 0 comments Download
M cc/quads/render_pass.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +50 lines, -34 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +22 lines, -19 lines 0 comments Download
M cc/surfaces/surface_aggregator_test_helpers.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M cc/surfaces/surface_aggregator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +19 lines, -21 lines 0 comments Download
M cc/test/layer_test_common.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -5 lines 0 comments Download
M content/common/cc_messages.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +73 lines, -85 lines 0 comments Download
M content/common/cc_messages_unittest.cc View 1 2 3 4 5 3 chunks +18 lines, -10 lines 0 comments Download
M mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +21 lines, -19 lines 0 comments Download
M mojo/services/public/cpp/surfaces/tests/surface_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/public/interfaces/surfaces/quads.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (4 generated)
weiliangc
danakj: cc kenrb: cc_message jamesr: mojo
6 years, 3 months ago (2014-09-12 22:18:51 UTC) #2
weiliangc
Rebase to latest. This follows the DrawQuad CL.
6 years, 3 months ago (2014-09-23 16:40:45 UTC) #3
weiliangc
Rebased to latest and ready to be reviewed. :)
6 years, 2 months ago (2014-09-26 17:38:32 UTC) #6
danakj
https://codereview.chromium.org/551013002/diff/140001/cc/quads/render_pass.cc File cc/quads/render_pass.cc (right): https://codereview.chromium.org/551013002/diff/140001/cc/quads/render_pass.cc#newcode69 cc/quads/render_pass.cc:69: num_layers ? num_layers : kDefaultNumSharedQuadStatesToReserve) { can num_layers be ...
6 years, 2 months ago (2014-09-26 20:40:56 UTC) #7
weiliangc
https://codereview.chromium.org/551013002/diff/140001/cc/quads/render_pass.cc File cc/quads/render_pass.cc (right): https://codereview.chromium.org/551013002/diff/140001/cc/quads/render_pass.cc#newcode69 cc/quads/render_pass.cc:69: num_layers ? num_layers : kDefaultNumSharedQuadStatesToReserve) { On 2014/09/26 20:40:55, ...
6 years, 2 months ago (2014-09-26 21:48:02 UTC) #8
weiliangc
https://codereview.chromium.org/551013002/diff/140001/mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc File mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc (right): https://codereview.chromium.org/551013002/diff/140001/mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc#newcode405 mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc:405: ++sqs_i; On 2014/09/26 20:40:55, danakj wrote: > if you ...
6 years, 2 months ago (2014-09-26 21:57:39 UTC) #9
danakj
https://codereview.chromium.org/551013002/diff/140001/content/common/cc_messages_unittest.cc File content/common/cc_messages_unittest.cc (right): https://codereview.chromium.org/551013002/diff/140001/content/common/cc_messages_unittest.cc#newcode481 content/common/cc_messages_unittest.cc:481: Compare(&*cmp_iterator, &*in_iterator); On 2014/09/26 21:48:02, weiliangc wrote: > On ...
6 years, 2 months ago (2014-09-26 22:46:40 UTC) #10
weiliangc
Address most review comments (other than C++11 loop) https://codereview.chromium.org/551013002/diff/140001/cc/quads/render_pass.cc File cc/quads/render_pass.cc (right): https://codereview.chromium.org/551013002/diff/140001/cc/quads/render_pass.cc#newcode130 cc/quads/render_pass.cc:130: while ...
6 years, 2 months ago (2014-10-01 23:02:01 UTC) #11
weiliangc
https://codereview.chromium.org/551013002/diff/140001/content/common/cc_messages.cc File content/common/cc_messages.cc (right): https://codereview.chromium.org/551013002/diff/140001/content/common/cc_messages.cc#newcode379 content/common/cc_messages.cc:379: // The shared_quad_state_index for each quad. On 2014/09/26 20:40:55, ...
6 years, 2 months ago (2014-10-01 23:02:50 UTC) #12
weiliangc
Use range based loop other than one case where iterator.index() is useful. Follow up CL: ...
6 years, 2 months ago (2014-10-01 23:33:06 UTC) #13
danakj
https://codereview.chromium.org/551013002/diff/260001/cc/quads/list_container.cc File cc/quads/list_container.cc (right): https://codereview.chromium.org/551013002/diff/260001/cc/quads/list_container.cc#newcode380 cc/quads/list_container.cc:380: size_t cache_index = index; s/cache/original/ https://codereview.chromium.org/551013002/diff/260001/cc/quads/list_container.cc#newcode397 cc/quads/list_container.cc:397: size_t cache_index ...
6 years, 2 months ago (2014-10-02 15:32:49 UTC) #14
weiliangc
https://codereview.chromium.org/551013002/diff/260001/cc/quads/list_container.cc File cc/quads/list_container.cc (right): https://codereview.chromium.org/551013002/diff/260001/cc/quads/list_container.cc#newcode380 cc/quads/list_container.cc:380: size_t cache_index = index; On 2014/10/02 15:32:47, danakj wrote: ...
6 years, 2 months ago (2014-10-02 22:01:41 UTC) #15
weiliangc
https://codereview.chromium.org/551013002/diff/260001/mojo/services/public/interfaces/surfaces/quads.mojom File mojo/services/public/interfaces/surfaces/quads.mojom (right): https://codereview.chromium.org/551013002/diff/260001/mojo/services/public/interfaces/surfaces/quads.mojom#newcode126 mojo/services/public/interfaces/surfaces/quads.mojom:126: uint32 shared_quad_state_index; On 2014/10/02 15:32:49, danakj wrote: > did ...
6 years, 2 months ago (2014-10-02 22:07:27 UTC) #16
jamesr
size_t doesn't exist in mojom (or in any IPC definition type) since the type can ...
6 years, 2 months ago (2014-10-02 22:15:48 UTC) #17
jamesr
I think saying that this index is 32 bits is fine, since mojo does not ...
6 years, 2 months ago (2014-10-02 22:17:41 UTC) #18
weiliangc
On 2014/10/02 22:17:41, jamesr wrote: > I think saying that this index is 32 bits ...
6 years, 2 months ago (2014-10-02 22:21:53 UTC) #19
weiliangc
https://codereview.chromium.org/551013002/diff/280001/mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc File mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc (right): https://codereview.chromium.org/551013002/diff/280001/mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc#newcode374 mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc:374: quads[iter.index()]->shared_quad_state_index = next_sqs_iter.index() - 1; Compiler warning here for ...
6 years, 2 months ago (2014-10-02 22:23:16 UTC) #20
jamesr
On 2014/10/02 22:21:53, weiliangc wrote: > On 2014/10/02 22:17:41, jamesr wrote: > > I think ...
6 years, 2 months ago (2014-10-02 23:01:50 UTC) #21
weiliangc
All review comments are addressed. :D
6 years, 2 months ago (2014-10-02 23:25:38 UTC) #22
danakj
LGTM % jamesr https://codereview.chromium.org/551013002/diff/260001/content/common/cc_messages.cc File content/common/cc_messages.cc (right): https://codereview.chromium.org/551013002/diff/260001/content/common/cc_messages.cc#newcode719 content/common/cc_messages.cc:719: const static size_t kMaxQuadListSize = 100000; ...
6 years, 2 months ago (2014-10-03 15:39:49 UTC) #23
jamesr
lgtm
6 years, 2 months ago (2014-10-03 17:35:50 UTC) #24
kenrb
ipc lgtm
6 years, 2 months ago (2014-10-03 19:58:50 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/551013002/340001
6 years, 2 months ago (2014-10-03 21:08:59 UTC) #27
commit-bot: I haz the power
Committed patchset #16 (id:340001) as 195a8d6886226a66e2fa7e8fb1d1cd0ba5b93ab9
6 years, 2 months ago (2014-10-03 22:53:24 UTC) #28
commit-bot: I haz the power
6 years, 2 months ago (2014-10-03 22:54:04 UTC) #29
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/808f70fa59631bb0fc9d0e0fd7e5956d0f1c052a
Cr-Commit-Position: refs/heads/master@{#298107}

Powered by Google App Engine
This is Rietveld 408576698