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

Issue 65193003: Clear SingleProcess and InProcessGPU logic. (Closed)

Created:
7 years, 1 month ago by dshwang
Modified:
7 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, piman+watch_chromium.org
Base URL:
https://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Clear SingleProcess and InProcessGPU logic. 1. SingleProcess and InProcessGPU mode are not supported in multiple-dll mode currently. Add CHECK() in RunNamedProcessTypeMain(). 2. GPU Process. 1) Currently, if InProcessGPU mode is enabled and g_gpu_main_thread_factory is not set, launch GPU Process slightly. However, other InProcessGPU code does not check if g_gpu_main_thread_factory is not set. It is a potential bug. 2) GpuMain() can not be called when SingleProcess or InProcessGPU mode. Remove SingleProcess and InProcessGPU switch check code. 3. Currently, if SingleProcess mode is enabled and g_renderer_main_thread_factory is not set, launch Render Process slightly. It is a potential bug. 4. Currently, if SingleProcess mode is enabled and g_utility_main_thread_factory is not set, launch Utility Process slightly. It is a potential bug. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237011

Patch Set 1 #

Total comments: 6

Patch Set 2 : WIP: diable kSingleProcess and kInProcessGPU in chrome multiple dll browser. #

Total comments: 1

Patch Set 3 : Add CommandLine::RemoveSwitch() to prevent --single-process when CHROME_MULTIPLE_DLL_BROWSER #

Total comments: 1

Patch Set 4 : Extract RegisterMainThreadFactories() from RunNamedProcessTypeMain() for readability. #

Total comments: 3

Patch Set 5 : --in-process-gpu is not supported in chrome multiple dll browser. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -27 lines) Patch
M content/app/content_main_runner.cc View 1 2 3 4 2 chunks +22 lines, -8 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/utility_process_host_impl.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M content/gpu/gpu_main.cc View 1 chunk +8 lines, -13 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
dshwang
7 years, 1 month ago (2013-11-07 20:42:17 UTC) #1
Ken Russell (switch to Gerrit)
I'd like to ask piman and sievers to review this in place of me.
7 years, 1 month ago (2013-11-07 20:48:26 UTC) #2
no sievers
lgtm
7 years, 1 month ago (2013-11-07 21:20:06 UTC) #3
dshwang
On 2013/11/07 21:20:06, sievers wrote: > lgtm thank you for review! agl@ could you review ...
7 years, 1 month ago (2013-11-07 21:24:32 UTC) #4
piman
https://codereview.chromium.org/65193003/diff/1/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/65193003/diff/1/content/app/content_main_runner.cc#newcode444 content/app/content_main_runner.cc:444: command_line.HasSwitch(switches::kInProcessGPU))); I suspect some people currently use that. What's ...
7 years, 1 month ago (2013-11-07 22:09:51 UTC) #5
dshwang
Thanks for review. https://codereview.chromium.org/65193003/diff/1/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/65193003/diff/1/content/app/content_main_runner.cc#newcode444 content/app/content_main_runner.cc:444: command_line.HasSwitch(switches::kInProcessGPU))); On 2013/11/07 22:09:52, piman wrote: ...
7 years, 1 month ago (2013-11-08 10:05:55 UTC) #6
piman
On Fri, Nov 8, 2013 at 2:05 AM, <dongseong.hwang@intel.com> wrote: > Thanks for review. > ...
7 years, 1 month ago (2013-11-08 21:48:19 UTC) #7
dshwang
On 2013/11/08 21:48:19, piman wrote: Thank you for good opinion. Marshall Greenblatt reported --single-process is ...
7 years, 1 month ago (2013-11-11 13:49:42 UTC) #8
dshwang
https://codereview.chromium.org/65193003/diff/170001/content/shell/app/shell_main_delegate.cc File content/shell/app/shell_main_delegate.cc (right): https://codereview.chromium.org/65193003/diff/170001/content/shell/app/shell_main_delegate.cc#newcode190 content/shell/app/shell_main_delegate.cc:190: #endif How about this code? It looks good to ...
7 years, 1 month ago (2013-11-11 13:50:47 UTC) #9
dshwang
I add CommandLine::RemoveSwitch() to prevent --single-process when CHROME_MULTIPLE_DLL_BROWSER piman@, could you review again? I think ...
7 years, 1 month ago (2013-11-18 16:20:40 UTC) #10
dshwang
thakis@, could you review command_line change?
7 years, 1 month ago (2013-11-18 16:22:53 UTC) #11
sky
Do we CHECK early on with a suitable warning in chrome some where?
7 years, 1 month ago (2013-11-18 16:36:59 UTC) #12
dshwang
On 2013/11/18 16:36:59, sky wrote: > Do we CHECK early on with a suitable warning ...
7 years, 1 month ago (2013-11-18 16:47:25 UTC) #13
sky
Hopefully agl knows if this is the right place.
7 years, 1 month ago (2013-11-18 21:14:26 UTC) #14
Nico
https://codereview.chromium.org/65193003/diff/330001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/65193003/diff/330001/content/app/content_main_runner.cc#newcode422 content/app/content_main_runner.cc:422: "--single-process is not supported in chrome multiple dll browser."; ...
7 years, 1 month ago (2013-11-19 00:35:16 UTC) #15
dshwang
https://codereview.chromium.org/65193003/diff/330001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/65193003/diff/330001/content/app/content_main_runner.cc#newcode422 content/app/content_main_runner.cc:422: "--single-process is not supported in chrome multiple dll browser."; ...
7 years, 1 month ago (2013-11-19 11:12:01 UTC) #16
piman
https://codereview.chromium.org/65193003/diff/330001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/65193003/diff/330001/content/app/content_main_runner.cc#newcode422 content/app/content_main_runner.cc:422: "--single-process is not supported in chrome multiple dll browser."; ...
7 years, 1 month ago (2013-11-19 20:35:56 UTC) #17
dshwang
On 2013/11/19 20:35:56, piman wrote: > https://codereview.chromium.org/65193003/diff/330001/content/app/content_main_runner.cc > File content/app/content_main_runner.cc (right): > > https://codereview.chromium.org/65193003/diff/330001/content/app/content_main_runner.cc#newcode422 > ...
7 years, 1 month ago (2013-11-19 21:09:32 UTC) #18
dshwang
Nico@ piman@ I apply your advice to Patch Set 5. Alert LOG(FATAL) in chrome multiple ...
7 years, 1 month ago (2013-11-19 21:18:30 UTC) #19
piman
lgtm
7 years, 1 month ago (2013-11-19 21:33:17 UTC) #20
Nico
base/ lgtm in patch set 5 ;-)
7 years, 1 month ago (2013-11-20 01:16:05 UTC) #21
dshwang
On 2013/11/20 01:16:05, Nico (in Tokyo until Nov 25) wrote: > base/ lgtm in patch ...
7 years, 1 month ago (2013-11-20 10:44:42 UTC) #22
dshwang
> agl@ could you review content/app ? > sky@ could you review content/browser ? ping
7 years, 1 month ago (2013-11-22 13:07:30 UTC) #23
sky
piman is an OWNER here too. You don't need both of us. -sky
7 years, 1 month ago (2013-11-22 14:25:32 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/65193003/460001
7 years, 1 month ago (2013-11-22 15:02:41 UTC) #25
dshwang
On 2013/11/22 14:25:32, sky wrote: > piman is an OWNER here too. You don't need ...
7 years, 1 month ago (2013-11-22 15:03:03 UTC) #26
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=37636
7 years, 1 month ago (2013-11-22 15:17:59 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/65193003/460001
7 years, 1 month ago (2013-11-22 15:44:58 UTC) #28
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=37649
7 years, 1 month ago (2013-11-22 16:04:18 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/65193003/460001
7 years ago (2013-11-24 20:28:28 UTC) #30
commit-bot: I haz the power
7 years ago (2013-11-24 22:49:59 UTC) #31
Message was sent while issue was closed.
Change committed as 237011

Powered by Google App Engine
This is Rietveld 408576698