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

Issue 1377063003: Split ThreadProxy methods to ProxyMain and ProxyImpl. (Closed)

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

Description

cc: Move inter-thread communication in ThreadProxy through ChannelMain and ChannelImpl. ThreadProxy currently uses PostTasks to communicate between the parts which run on the main and impl thread. Add methods to control this communication to the ChannelMain and ChannelImpl interfaces to used by ProxyMain and ProxyImpl for splitting ThreadProxy. Add the implementation for the case of the Threaded Compositor to ThreadedChannel. This is a follow up patch for: https://codereview.chromium.org/1357373002 BUG=527200 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/e3c9fa95884885ec885c934597b09a1bc3d8979e Cr-Commit-Position: refs/heads/master@{#356491}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressing comments. #

Total comments: 3

Patch Set 3 : Rebasing #

Total comments: 4

Patch Set 4 : Use completion events for blocking calls from ProxyMain. #

Total comments: 12

Patch Set 5 : Add remaining post task methods. #

Total comments: 5

Patch Set 6 : Add tests. #

Total comments: 2

Patch Set 7 : Rebase. #

Patch Set 8 : Keep ProxyMain and ProxyImpl methods private. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+934 lines, -206 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M cc/base/completion_event.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 1 chunk +135 lines, -0 lines 0 comments Download
M cc/trees/channel_impl.h View 1 2 3 4 2 chunks +20 lines, -0 lines 0 comments Download
M cc/trees/channel_main.h View 1 2 3 4 5 2 chunks +19 lines, -1 line 0 comments Download
A cc/trees/proxy_common.h View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A cc/trees/proxy_common.cc View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M cc/trees/proxy_impl.h View 1 2 3 4 5 6 7 2 chunks +22 lines, -2 lines 0 comments Download
M cc/trees/proxy_main.h View 1 2 3 4 5 6 7 2 chunks +25 lines, -3 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 5 6 7 3 chunks +44 lines, -52 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 35 chunks +66 lines, -148 lines 0 comments Download
M cc/trees/threaded_channel.h View 1 2 3 4 5 3 chunks +41 lines, -0 lines 0 comments Download
M cc/trees/threaded_channel.cc View 1 2 3 4 5 2 chunks +157 lines, -0 lines 0 comments Download
A cc/trees/threaded_channel_unittest.cc View 1 2 3 4 5 1 chunk +311 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (10 generated)
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/1377063003/diff/1/cc/trees/threaded_channel.h File cc/trees/threaded_channel.h (right): https://chromiumcodereview.appspot.com/1377063003/diff/1/cc/trees/threaded_channel.h#newcode106 cc/trees/threaded_channel.h:106: void PostFrameTimingEventsToMain( ToMain -> OnMain? https://chromiumcodereview.appspot.com/1377063003/diff/1/cc/trees/threaded_channel.h#newcode145 cc/trees/threaded_channel.h:145: base::WeakPtrFactory<ThreadedChannel> impl_weak_factory_; ...
5 years, 2 months ago (2015-09-30 14:44:57 UTC) #2
Khushal
https://chromiumcodereview.appspot.com/1377063003/diff/1/cc/trees/threaded_channel.h File cc/trees/threaded_channel.h (right): https://chromiumcodereview.appspot.com/1377063003/diff/1/cc/trees/threaded_channel.h#newcode106 cc/trees/threaded_channel.h:106: void PostFrameTimingEventsToMain( On 2015/09/30 14:44:56, David Trainor wrote: > ...
5 years, 2 months ago (2015-09-30 15:26:34 UTC) #4
khushalsagar
https://chromiumcodereview.appspot.com/1377063003/diff/20001/cc/trees/thread_proxy.h File cc/trees/thread_proxy.h (right): https://chromiumcodereview.appspot.com/1377063003/diff/20001/cc/trees/thread_proxy.h#newcode260 cc/trees/thread_proxy.h:260: void DidInitializeOutputSurface( The output surface creation and release will ...
5 years, 2 months ago (2015-10-01 21:19:37 UTC) #6
David Trainor- moved to gerrit
lgtm
5 years, 2 months ago (2015-10-08 18:01:57 UTC) #7
danakj
https://chromiumcodereview.appspot.com/1377063003/diff/20001/cc/trees/thread_proxy.h File cc/trees/thread_proxy.h (right): https://chromiumcodereview.appspot.com/1377063003/diff/20001/cc/trees/thread_proxy.h#newcode260 cc/trees/thread_proxy.h:260: void DidInitializeOutputSurface( On 2015/10/01 21:19:37, khushalsagar wrote: > The ...
5 years, 2 months ago (2015-10-08 18:03:32 UTC) #8
danakj
On 2015/10/08 18:03:32, danakj_OOO_til_10-12 wrote: > https://chromiumcodereview.appspot.com/1377063003/diff/20001/cc/trees/thread_proxy.h > File cc/trees/thread_proxy.h (right): > > https://chromiumcodereview.appspot.com/1377063003/diff/20001/cc/trees/thread_proxy.h#newcode260 > ...
5 years, 2 months ago (2015-10-08 18:16:49 UTC) #9
David Trainor- moved to gerrit
On 2015/10/08 18:16:49, danakj_OOO_til_10-12 wrote: > On 2015/10/08 18:03:32, danakj_OOO_til_10-12 wrote: > > > https://chromiumcodereview.appspot.com/1377063003/diff/20001/cc/trees/thread_proxy.h ...
5 years, 2 months ago (2015-10-08 18:29:17 UTC) #10
danakj
> > I think we could still pass the renderer capabilities back to the main ...
5 years, 2 months ago (2015-10-08 19:14:04 UTC) #11
danakj
https://chromiumcodereview.appspot.com/1377063003/diff/40001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://chromiumcodereview.appspot.com/1377063003/diff/40001/cc/trees/thread_proxy.cc#newcode159 cc/trees/thread_proxy.cc:159: main().channel_main->SetVisibleOnImpl(visible); i'd like it if it was obvious which ...
5 years, 2 months ago (2015-10-08 19:21:08 UTC) #12
Khushal
https://chromiumcodereview.appspot.com/1377063003/diff/40001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://chromiumcodereview.appspot.com/1377063003/diff/40001/cc/trees/thread_proxy.cc#newcode159 cc/trees/thread_proxy.cc:159: main().channel_main->SetVisibleOnImpl(visible); On 2015/10/08 19:21:08, danakj_OOO_til_10-12 wrote: > i'd like ...
5 years, 2 months ago (2015-10-08 20:32:07 UTC) #13
danakj
https://chromiumcodereview.appspot.com/1377063003/diff/40001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://chromiumcodereview.appspot.com/1377063003/diff/40001/cc/trees/thread_proxy.cc#newcode159 cc/trees/thread_proxy.cc:159: main().channel_main->SetVisibleOnImpl(visible); On 2015/10/08 20:32:07, Khushal wrote: > On 2015/10/08 ...
5 years, 2 months ago (2015-10-09 17:54:43 UTC) #14
Khushal
https://chromiumcodereview.appspot.com/1377063003/diff/40001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://chromiumcodereview.appspot.com/1377063003/diff/40001/cc/trees/thread_proxy.cc#newcode159 cc/trees/thread_proxy.cc:159: main().channel_main->SetVisibleOnImpl(visible); On 2015/10/09 17:54:43, danakj_OOO_til_10-12 wrote: > On 2015/10/08 ...
5 years, 2 months ago (2015-10-09 19:46:56 UTC) #15
Khushal
On 2015/10/09 19:46:56, Khushal wrote: > https://chromiumcodereview.appspot.com/1377063003/diff/40001/cc/trees/thread_proxy.cc > File cc/trees/thread_proxy.cc (right): > > https://chromiumcodereview.appspot.com/1377063003/diff/40001/cc/trees/thread_proxy.cc#newcode159 > ...
5 years, 2 months ago (2015-10-14 01:50:44 UTC) #16
danakj
I think vlad should be primary on this. He did a lot on the prototype ...
5 years, 2 months ago (2015-10-14 17:56:26 UTC) #18
danakj
Please consider formatting your CL description according to guidelines like these: http://chris.beams.io/posts/git-commit/ Specifically, wrapping at ...
5 years, 2 months ago (2015-10-14 17:57:33 UTC) #20
Khushal
On 2015/10/14 17:57:33, danakj wrote: > Please consider formatting your CL description according to guidelines ...
5 years, 2 months ago (2015-10-14 22:06:06 UTC) #22
vmpstr
Sorry for high level questions, but is this meant to split thread proxy into two ...
5 years, 2 months ago (2015-10-15 20:25:04 UTC) #23
Khushal
On 2015/10/15 20:25:04, vmpstr wrote: > Sorry for high level questions, but is this meant ...
5 years, 2 months ago (2015-10-15 23:44:57 UTC) #24
Khushal
https://codereview.chromium.org/1377063003/diff/60001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/1377063003/diff/60001/cc/trees/thread_proxy.cc#newcode142 cc/trees/thread_proxy.cc:142: main().channel_main->FinishAllRenderingOnImpl(&completion); On 2015/10/15 20:25:04, vmpstr wrote: > It's a ...
5 years, 2 months ago (2015-10-15 23:45:51 UTC) #25
vmpstr
I also wonder if we should include some smoke tests here, just to make sure ...
5 years, 2 months ago (2015-10-17 00:05:51 UTC) #26
Khushal
It would be a great idea to add tests for the Channel. I'll add them ...
5 years, 2 months ago (2015-10-17 02:02:48 UTC) #27
vmpstr
https://codereview.chromium.org/1377063003/diff/80001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (left): https://codereview.chromium.org/1377063003/diff/80001/cc/trees/thread_proxy.cc#oldcode799 cc/trees/thread_proxy.cc:799: completion->Signal(); We can keep the completion logic as is ...
5 years, 2 months ago (2015-10-19 18:08:08 UTC) #28
Khushal
https://codereview.chromium.org/1377063003/diff/80001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (left): https://codereview.chromium.org/1377063003/diff/80001/cc/trees/thread_proxy.cc#oldcode799 cc/trees/thread_proxy.cc:799: completion->Signal(); On 2015/10/19 18:08:07, vmpstr wrote: > We can ...
5 years, 2 months ago (2015-10-20 11:58:27 UTC) #29
vmpstr
Looks good, just one comment https://codereview.chromium.org/1377063003/diff/100001/cc/trees/thread_proxy.h File cc/trees/thread_proxy.h (right): https://codereview.chromium.org/1377063003/diff/100001/cc/trees/thread_proxy.h#newcode244 cc/trees/thread_proxy.h:244: void SetRendererCapabilitiesMainCopy( I'm a ...
5 years, 1 month ago (2015-10-26 17:57:36 UTC) #30
Khushal
https://codereview.chromium.org/1377063003/diff/100001/cc/trees/thread_proxy.h File cc/trees/thread_proxy.h (right): https://codereview.chromium.org/1377063003/diff/100001/cc/trees/thread_proxy.h#newcode244 cc/trees/thread_proxy.h:244: void SetRendererCapabilitiesMainCopy( On 2015/10/26 17:57:36, vmpstr wrote: > I'm ...
5 years, 1 month ago (2015-10-26 20:56:02 UTC) #31
vmpstr
lgtm thanks.
5 years, 1 month ago (2015-10-27 21:38:08 UTC) #32
Khushal
On 2015/10/27 21:38:08, vmpstr wrote: > lgtm thanks. Thanks Vlad!
5 years, 1 month ago (2015-10-27 21:39:31 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1377063003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1377063003/140001
5 years, 1 month ago (2015-10-27 21:42:06 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/132050)
5 years, 1 month ago (2015-10-28 00:01:06 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1377063003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1377063003/140001
5 years, 1 month ago (2015-10-28 01:34:05 UTC) #40
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 1 month ago (2015-10-28 02:08:38 UTC) #41
commit-bot: I haz the power
5 years, 1 month ago (2015-10-28 02:09:08 UTC) #42
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e3c9fa95884885ec885c934597b09a1bc3d8979e
Cr-Commit-Position: refs/heads/master@{#356491}

Powered by Google App Engine
This is Rietveld 408576698