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

Issue 1418953002: cc: Send shared variables between main and impl side using the channel (Closed)

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

Description

cc: Send shared variables between main and impl side using the channel ProxyImpl uses the LayerTreeHost for 2 blocking operations: initialization and commit. Pass this through the channel to make the main state seen by the impl side for an operation explicit. Also route post tasks for initialization and shutdown through the channel. This is a follow-up patch to: https://codereview.chromium.org/1377063003/ BUG=527200 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/64d1e686b0eb5e60a2d2e8f7c3f86c57698249bb Cr-Commit-Position: refs/heads/master@{#357759}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase. #

Total comments: 16

Patch Set 3 : Addressing comments. #

Total comments: 8

Patch Set 4 : Addressing comments. #

Total comments: 2

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -123 lines) Patch
M cc/test/layer_tree_test.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 2 chunks +21 lines, -2 lines 0 comments Download
M cc/trees/channel_main.h View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_proxy.cc View 1 2 3 1 chunk +62 lines, -0 lines 0 comments Download
M cc/trees/proxy_impl.h View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 7 chunks +21 lines, -24 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 25 chunks +85 lines, -91 lines 0 comments Download
M cc/trees/threaded_channel.h View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M cc/trees/threaded_channel.cc View 1 2 3 4 1 chunk +20 lines, -2 lines 0 comments Download
M cc/trees/threaded_channel_unittest.cc View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 33 (10 generated)
Khushal
5 years, 1 month ago (2015-10-22 02:37:52 UTC) #4
Khushal
https://codereview.chromium.org/1418953002/diff/1/cc/trees/channel_main.h File cc/trees/channel_main.h (right): https://codereview.chromium.org/1418953002/diff/1/cc/trees/channel_main.h#newcode47 cc/trees/channel_main.h:47: virtual void StartCommitOnImpl(CompletionEvent* completion, The aim here is to ...
5 years, 1 month ago (2015-10-23 22:42:29 UTC) #5
Khushal
On 2015/10/23 22:42:29, Khushal wrote: > https://codereview.chromium.org/1418953002/diff/1/cc/trees/channel_main.h > File cc/trees/channel_main.h (right): > > https://codereview.chromium.org/1418953002/diff/1/cc/trees/channel_main.h#newcode47 > ...
5 years, 1 month ago (2015-10-29 20:06:56 UTC) #6
vmpstr
+brianderson as well. https://codereview.chromium.org/1418953002/diff/20001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (left): https://codereview.chromium.org/1418953002/diff/20001/cc/trees/thread_proxy.cc#oldcode805 cc/trees/thread_proxy.cc:805: impl().completion_event_for_commit_held_on_tree_activation = This is the part ...
5 years, 1 month ago (2015-10-29 21:36:33 UTC) #8
brianderson
https://codereview.chromium.org/1418953002/diff/20001/cc/trees/proxy_impl.h File cc/trees/proxy_impl.h (right): https://codereview.chromium.org/1418953002/diff/20001/cc/trees/proxy_impl.h#newcode51 cc/trees/proxy_impl.h:51: virtual void LayerTreeHostClosedOnImpl(CompletionEvent* completion) = 0; Should bug summary ...
5 years, 1 month ago (2015-10-29 22:38:28 UTC) #9
Khushal
https://codereview.chromium.org/1418953002/diff/20001/cc/trees/proxy_impl.h File cc/trees/proxy_impl.h (right): https://codereview.chromium.org/1418953002/diff/20001/cc/trees/proxy_impl.h#newcode51 cc/trees/proxy_impl.h:51: virtual void LayerTreeHostClosedOnImpl(CompletionEvent* completion) = 0; On 2015/10/29 22:38:28, ...
5 years, 1 month ago (2015-10-29 22:52:19 UTC) #11
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/1418953002/diff/40001/cc/trees/layer_tree_host_unittest_proxy.cc File cc/trees/layer_tree_host_unittest_proxy.cc (right): https://chromiumcodereview.appspot.com/1418953002/diff/40001/cc/trees/layer_tree_host_unittest_proxy.cc#newcode328 cc/trees/layer_tree_host_unittest_proxy.cc:328: commits_completed_++; Pull this out of the switch? Otherwise if ...
5 years, 1 month ago (2015-11-02 16:19:45 UTC) #12
Khushal
https://chromiumcodereview.appspot.com/1418953002/diff/40001/cc/trees/layer_tree_host_unittest_proxy.cc File cc/trees/layer_tree_host_unittest_proxy.cc (right): https://chromiumcodereview.appspot.com/1418953002/diff/40001/cc/trees/layer_tree_host_unittest_proxy.cc#newcode328 cc/trees/layer_tree_host_unittest_proxy.cc:328: commits_completed_++; On 2015/11/02 16:19:44, David Trainor wrote: > Pull ...
5 years, 1 month ago (2015-11-02 17:02:54 UTC) #13
Khushal
friendly ping! :)
5 years, 1 month ago (2015-11-03 19:43:28 UTC) #14
vmpstr
lgtm, if brianderson is ok with it. https://codereview.chromium.org/1418953002/diff/40001/cc/trees/layer_tree_host_unittest_proxy.cc File cc/trees/layer_tree_host_unittest_proxy.cc (right): https://codereview.chromium.org/1418953002/diff/40001/cc/trees/layer_tree_host_unittest_proxy.cc#newcode302 cc/trees/layer_tree_host_unittest_proxy.cc:302: EXPECT_EQ(nullptr, ThreadProxyImplOnly().commit_completion_event); ...
5 years, 1 month ago (2015-11-03 19:50:55 UTC) #15
Khushal
Thanks Vlad. brianderson@, could you please take a look? https://codereview.chromium.org/1418953002/diff/40001/cc/trees/layer_tree_host_unittest_proxy.cc File cc/trees/layer_tree_host_unittest_proxy.cc (right): https://codereview.chromium.org/1418953002/diff/40001/cc/trees/layer_tree_host_unittest_proxy.cc#newcode302 cc/trees/layer_tree_host_unittest_proxy.cc:302: ...
5 years, 1 month ago (2015-11-03 20:03:05 UTC) #16
brianderson
1 comment, then lgtm. https://codereview.chromium.org/1418953002/diff/60001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/1418953002/diff/60001/cc/trees/thread_proxy.cc#newcode955 cc/trees/thread_proxy.cc:955: impl().layer_tree_host_impl = layer_tree_host->CreateLayerTreeHostImpl(this); Can this ...
5 years, 1 month ago (2015-11-03 22:14:44 UTC) #17
Khushal
https://codereview.chromium.org/1418953002/diff/60001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/1418953002/diff/60001/cc/trees/thread_proxy.cc#newcode955 cc/trees/thread_proxy.cc:955: impl().layer_tree_host_impl = layer_tree_host->CreateLayerTreeHostImpl(this); On 2015/11/03 22:14:44, brianderson wrote: > ...
5 years, 1 month ago (2015-11-03 23:07:52 UTC) #18
Khushal
On 2015/11/03 23:07:52, Khushal wrote: > https://codereview.chromium.org/1418953002/diff/60001/cc/trees/thread_proxy.cc > File cc/trees/thread_proxy.cc (right): > > https://codereview.chromium.org/1418953002/diff/60001/cc/trees/thread_proxy.cc#newcode955 > ...
5 years, 1 month ago (2015-11-04 00:42:09 UTC) #19
brianderson
On 2015/11/04 00:42:09, Khushal wrote: > On 2015/11/03 23:07:52, Khushal wrote: > > https://codereview.chromium.org/1418953002/diff/60001/cc/trees/thread_proxy.cc > ...
5 years, 1 month ago (2015-11-04 01:09:32 UTC) #20
Khushal
On 2015/11/04 01:09:32, brianderson wrote: > On 2015/11/04 00:42:09, Khushal wrote: > > On 2015/11/03 ...
5 years, 1 month ago (2015-11-04 01:44:58 UTC) #21
brianderson
On 2015/11/04 01:44:58, Khushal wrote: > On 2015/11/04 01:09:32, brianderson wrote: > > On 2015/11/04 ...
5 years, 1 month ago (2015-11-04 02:36:30 UTC) #22
Khushal
On 2015/11/04 02:36:30, brianderson wrote: > On 2015/11/04 01:44:58, Khushal wrote: > > On 2015/11/04 ...
5 years, 1 month ago (2015-11-04 02:46:39 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418953002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418953002/60001
5 years, 1 month ago (2015-11-04 02:47:06 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/118584) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 1 month ago (2015-11-04 02:50:13 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418953002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418953002/80001
5 years, 1 month ago (2015-11-04 03:43:21 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-11-04 05:03:46 UTC) #32
commit-bot: I haz the power
5 years, 1 month ago (2015-11-04 05:04:31 UTC) #33
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/64d1e686b0eb5e60a2d2e8f7c3f86c57698249bb
Cr-Commit-Position: refs/heads/master@{#357759}

Powered by Google App Engine
This is Rietveld 408576698