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

Issue 1357373002: Add basic framework for splitting thread proxy. (Closed)

Created:
5 years, 3 months ago by Khushal
Modified:
5 years, 2 months ago
CC:
weiliangc, 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

Add basic framework for splitting thread proxy. ProxyMain and ProxyImpl have been temporarily defined as interfaces to have the implementation in ThreadProxy and incrementally move methods to the different classes. MainThreadOnly and BlockedMainThread are the variables owned by ProxyMain and CompositorThreadOnly are the variables owned by ProxyImpl. All access to the data variables and methods for the 2 sides will be routed through the Channel interfaces with ThreadedChannel providing the implementation for the current case where ProxyMain and ProxyImpl are running on separate threads. BUG=527200 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/5d6eb98fd5d6acf448c153e89d09dc506f0e4210 Cr-Commit-Position: refs/heads/master@{#350935}

Patch Set 1 #

Patch Set 2 : Use impl channel in ThreadProxy. #

Patch Set 3 : Adding comments. Setting up temporary initialization sequence. #

Patch Set 4 : Minor clean-up. #

Total comments: 10

Patch Set 5 : Addressing comments #

Total comments: 4

Patch Set 6 : Minor comment change. #

Total comments: 4

Patch Set 7 : Addressing comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -16 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 1 comment Download
A cc/trees/channel_impl.h View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A cc/trees/channel_main.h View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
A cc/trees/proxy_impl.h View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
A cc/trees/proxy_main.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 5 6 8 chunks +28 lines, -3 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 7 chunks +27 lines, -13 lines 0 comments Download
A cc/trees/threaded_channel.h View 1 2 1 chunk +106 lines, -0 lines 0 comments Download
A cc/trees/threaded_channel.cc View 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/1357373002/diff/60001/cc/trees/channel_main.h File cc/trees/channel_main.h (right): https://chromiumcodereview.appspot.com/1357373002/diff/60001/cc/trees/channel_main.h#newcode11 cc/trees/channel_main.h:11: class ThreadProxy; Remove? https://chromiumcodereview.appspot.com/1357373002/diff/60001/cc/trees/channel_main.h#newcode18 cc/trees/channel_main.h:18: // LayerTreeHost --> ProxyMain ...
5 years, 3 months ago (2015-09-23 17:54:12 UTC) #3
Khushal
https://codereview.chromium.org/1357373002/diff/60001/cc/trees/channel_main.h File cc/trees/channel_main.h (right): https://codereview.chromium.org/1357373002/diff/60001/cc/trees/channel_main.h#newcode11 cc/trees/channel_main.h:11: class ThreadProxy; On 2015/09/23 17:54:11, David Trainor wrote: > ...
5 years, 3 months ago (2015-09-23 20:50:28 UTC) #4
enne (OOO)
This all looks like exactly what I'd expect. weiliangc: do you have any comments here? ...
5 years, 2 months ago (2015-09-24 22:40:44 UTC) #6
Khushal
Thanks Enne. https://codereview.chromium.org/1357373002/diff/80001/cc/trees/channel_main.h File cc/trees/channel_main.h (right): https://codereview.chromium.org/1357373002/diff/80001/cc/trees/channel_main.h#newcode15 cc/trees/channel_main.h:15: // The communication sequence between the 2 ...
5 years, 2 months ago (2015-09-24 23:46:51 UTC) #7
weiliangc
Looks good. https://codereview.chromium.org/1357373002/diff/100001/cc/trees/thread_proxy.h File cc/trees/thread_proxy.h (right): https://codereview.chromium.org/1357373002/diff/100001/cc/trees/thread_proxy.h#newcode20 cc/trees/thread_proxy.h:20: #include "threaded_channel.h" include path? https://codereview.chromium.org/1357373002/diff/100001/cc/trees/threaded_channel.h File cc/trees/threaded_channel.h ...
5 years, 2 months ago (2015-09-25 19:42:46 UTC) #8
enne (OOO)
lgtm % weiliangc's comments. Just wanted to give her a chance to review it too.
5 years, 2 months ago (2015-09-25 19:58:28 UTC) #9
Khushal
Done. https://codereview.chromium.org/1357373002/diff/100001/cc/trees/thread_proxy.h File cc/trees/thread_proxy.h (right): https://codereview.chromium.org/1357373002/diff/100001/cc/trees/thread_proxy.h#newcode20 cc/trees/thread_proxy.h:20: #include "threaded_channel.h" On 2015/09/25 19:42:45, weiliangc wrote: > ...
5 years, 2 months ago (2015-09-25 20:48:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1357373002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1357373002/120001
5 years, 2 months ago (2015-09-25 20:54:12 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/109137)
5 years, 2 months ago (2015-09-25 21:41:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1357373002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1357373002/120001
5 years, 2 months ago (2015-09-25 22:06:38 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 2 months ago (2015-09-25 22:45:04 UTC) #18
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/5d6eb98fd5d6acf448c153e89d09dc506f0e4210 Cr-Commit-Position: refs/heads/master@{#350935}
5 years, 2 months ago (2015-09-25 22:45:48 UTC) #19
brucedawson
5 years, 2 months ago (2015-10-01 00:20:32 UTC) #21
Message was sent while issue was closed.
https://chromiumcodereview-hr.appspot.com/1357373002/diff/120001/cc/cc.gyp
File cc/cc.gyp (right):

https://chromiumcodereview-hr.appspot.com/1357373002/diff/120001/cc/cc.gyp#ne...
cc/cc.gyp:547: 'trees/proxy_main.h'
Missing commas here make for a very odd three-part path name...

I'm creating a CL to fix this and some other .gyp header file errors. Just an
FYI.

Powered by Google App Engine
This is Rietveld 408576698