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

Issue 1928863002: Enable FeatureList for the GPU process. (Closed)

Created:
4 years, 7 months ago by erikchen
Modified:
4 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable FeatureList for the GPU process. This CL plumbs feature flags from the browser process to the gpu process. This CL moves FeatureList initialization into content_main_runner.cc, for the gpu, utility and ppapi plugin processes. Eventually, all non-browser FeatureList initialization should live in content_main_runner.cc. This CL sets the entropy provider to NULL, and creates trials from kForceFieldTrials for the gpu, utility, and ppapi plugin processes. BUG=606850, 563705 Committed: https://crrev.com/55edbffd354ade26373730bcb2f744c46b46b1ed Cr-Commit-Position: refs/heads/master@{#391403}

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : Comments from asvitkine. #

Total comments: 4

Patch Set 4 : Comments from asvitkine. #

Patch Set 5 : More comments. #

Total comments: 2

Patch Set 6 : Comments from asvitkine. #

Patch Set 7 : Zygote process! #

Total comments: 6

Patch Set 8 : #

Patch Set 9 : #

Total comments: 6

Patch Set 10 : Comments from asvitkine. #

Total comments: 5

Patch Set 11 : Comments from jam. #

Patch Set 12 : Comments from jam. #

Total comments: 4

Patch Set 13 : Comments from jam. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -64 lines) Patch
M content/app/content_main_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +48 lines, -0 lines 2 comments Download
M content/browser/browser_child_process_host_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +24 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +1 line, -30 lines 0 comments Download
M content/ppapi_plugin/ppapi_plugin_main.cc View 1 2 3 4 5 6 2 chunks +0 lines, -7 lines 0 comments Download
M content/renderer/renderer_main.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -20 lines 0 comments Download
M content/utility/utility_main.cc View 2 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 58 (22 generated)
erikchen
asvitkine: Please review. I tried moving renderer FeatureList initialization into content_main_runner.cc, but ran into difficulties, ...
4 years, 7 months ago (2016-04-28 01:02:59 UTC) #5
Alexei Svitkine (slow)
Thanks for working on this! https://codereview.chromium.org/1928863002/diff/20001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/1928863002/diff/20001/content/app/content_main_runner.cc#newcode735 content/app/content_main_runner.cc:735: // TODO(asvitkine): This logic ...
4 years, 7 months ago (2016-04-28 15:23:33 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1928863002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1928863002/40001
4 years, 7 months ago (2016-04-29 17:43:53 UTC) #9
erikchen
https://codereview.chromium.org/1928863002/diff/20001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/1928863002/diff/20001/content/app/content_main_runner.cc#newcode735 content/app/content_main_runner.cc:735: // TODO(asvitkine): This logic should run for all child ...
4 years, 7 months ago (2016-04-29 17:45:04 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/1928863002/diff/20001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/1928863002/diff/20001/content/app/content_main_runner.cc#newcode743 content/app/content_main_runner.cc:743: base::FieldTrialList field_trial_list(NULL); On 2016/04/29 17:45:04, erikchen wrote: > On ...
4 years, 7 months ago (2016-04-29 18:06:32 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/140936)
4 years, 7 months ago (2016-04-29 18:25:22 UTC) #13
erikchen
https://codereview.chromium.org/1928863002/diff/40001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/1928863002/diff/40001/content/app/content_main_runner.cc#newcode736 content/app/content_main_runner.cc:736: // provider to NULL to disallow non-browser processes from ...
4 years, 7 months ago (2016-04-29 18:34:38 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1928863002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1928863002/80001
4 years, 7 months ago (2016-04-29 18:35:10 UTC) #16
Alexei Svitkine (slow)
lgtm with one final suggestion thanks again! https://codereview.chromium.org/1928863002/diff/80001/content/renderer/renderer_main.cc File content/renderer/renderer_main.cc (left): https://codereview.chromium.org/1928863002/diff/80001/content/renderer/renderer_main.cc#oldcode174 content/renderer/renderer_main.cc:174: base::FeatureList::SetInstance(std::move(feature_list)); How ...
4 years, 7 months ago (2016-04-29 18:42:14 UTC) #17
Alexei Svitkine (slow)
https://codereview.chromium.org/1928863002/diff/80001/content/renderer/renderer_main.cc File content/renderer/renderer_main.cc (left): https://codereview.chromium.org/1928863002/diff/80001/content/renderer/renderer_main.cc#oldcode174 content/renderer/renderer_main.cc:174: base::FeatureList::SetInstance(std::move(feature_list)); On 2016/04/29 18:42:13, Alexei Svitkine wrote: > How ...
4 years, 7 months ago (2016-04-29 18:43:05 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/214118)
4 years, 7 months ago (2016-04-29 19:15:10 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1928863002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1928863002/100001
4 years, 7 months ago (2016-04-29 19:32:25 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/153377)
4 years, 7 months ago (2016-04-29 20:40:36 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1928863002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1928863002/120001
4 years, 7 months ago (2016-04-29 21:03:01 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/163158)
4 years, 7 months ago (2016-04-29 22:29:38 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1928863002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1928863002/140001
4 years, 7 months ago (2016-05-03 01:26:47 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/155482)
4 years, 7 months ago (2016-05-03 02:32:29 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1928863002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1928863002/160001
4 years, 7 months ago (2016-05-03 17:52:58 UTC) #34
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-03 18:42:45 UTC) #36
erikchen
asvitkine: PTAL
4 years, 7 months ago (2016-05-03 18:47:59 UTC) #37
Alexei Svitkine (slow)
https://codereview.chromium.org/1928863002/diff/120001/content/common/child_process_host_impl.cc File content/common/child_process_host_impl.cc (right): https://codereview.chromium.org/1928863002/diff/120001/content/common/child_process_host_impl.cc#newcode204 content/common/child_process_host_impl.cc:204: void ChildProcessHostImpl::CopyEnableDisableFeatureFlags( Nit: CopyFeatureAndFieldTrialFlags() since now this also doing ...
4 years, 7 months ago (2016-05-03 18:59:48 UTC) #38
erikchen
asvitkine: PTAL https://codereview.chromium.org/1928863002/diff/120001/content/common/child_process_host_impl.cc File content/common/child_process_host_impl.cc (right): https://codereview.chromium.org/1928863002/diff/120001/content/common/child_process_host_impl.cc#newcode204 content/common/child_process_host_impl.cc:204: void ChildProcessHostImpl::CopyEnableDisableFeatureFlags( On 2016/05/03 18:59:47, Alexei Svitkine ...
4 years, 7 months ago (2016-05-03 19:22:32 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1928863002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1928863002/180001
4 years, 7 months ago (2016-05-03 19:23:04 UTC) #41
Alexei Svitkine (slow)
lgtm
4 years, 7 months ago (2016-05-03 19:28:44 UTC) #42
erikchen
jam: Please review.
4 years, 7 months ago (2016-05-03 19:29:35 UTC) #44
jam
https://codereview.chromium.org/1928863002/diff/180001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/1928863002/diff/180001/content/app/content_main_runner.cc#newcode143 content/app/content_main_runner.cc:143: // TODO(asvitkine): This logic should run for all child ...
4 years, 7 months ago (2016-05-03 19:45:09 UTC) #45
erikchen
jam: PTAL https://codereview.chromium.org/1928863002/diff/180001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/1928863002/diff/180001/content/app/content_main_runner.cc#newcode143 content/app/content_main_runner.cc:143: // TODO(asvitkine): This logic should run for ...
4 years, 7 months ago (2016-05-03 19:55:05 UTC) #46
jam
https://codereview.chromium.org/1928863002/diff/180001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/1928863002/diff/180001/content/app/content_main_runner.cc#newcode143 content/app/content_main_runner.cc:143: // TODO(asvitkine): This logic should run for all child ...
4 years, 7 months ago (2016-05-03 20:07:38 UTC) #47
erikchen
On 2016/05/03 20:07:38, jam wrote: > https://codereview.chromium.org/1928863002/diff/180001/content/app/content_main_runner.cc > File content/app/content_main_runner.cc (right): > > https://codereview.chromium.org/1928863002/diff/180001/content/app/content_main_runner.cc#newcode143 > ...
4 years, 7 months ago (2016-05-03 21:01:25 UTC) #48
jam
lgtm https://codereview.chromium.org/1928863002/diff/220001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/1928863002/diff/220001/content/app/content_main_runner.cc#newcode777 content/app/content_main_runner.cc:777: if (process_type != "" && process_type != switches::kZygoteProcess) ...
4 years, 7 months ago (2016-05-03 21:33:48 UTC) #49
erikchen
https://codereview.chromium.org/1928863002/diff/220001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/1928863002/diff/220001/content/app/content_main_runner.cc#newcode777 content/app/content_main_runner.cc:777: if (process_type != "" && process_type != switches::kZygoteProcess) On ...
4 years, 7 months ago (2016-05-03 21:49:33 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1928863002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1928863002/240001
4 years, 7 months ago (2016-05-03 21:50:25 UTC) #53
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 7 months ago (2016-05-03 23:53:34 UTC) #54
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/55edbffd354ade26373730bcb2f744c46b46b1ed Cr-Commit-Position: refs/heads/master@{#391403}
4 years, 7 months ago (2016-05-03 23:55:07 UTC) #56
Alexei Svitkine (slow)
lgtm % nit Maybe send a follow-up CL to clean that up? Thanks! https://codereview.chromium.org/1928863002/diff/240001/content/app/content_main_runner.cc File ...
4 years, 7 months ago (2016-05-04 15:08:08 UTC) #57
erikchen
4 years, 7 months ago (2016-05-04 16:10:10 UTC) #58
Message was sent while issue was closed.
https://codereview.chromium.org/1928863002/diff/240001/content/app/content_ma...
File content/app/content_main_runner.cc (right):

https://codereview.chromium.org/1928863002/diff/240001/content/app/content_ma...
content/app/content_main_runner.cc:141:
command_line.GetSwitchValueASCII(switches::kProcessType);
On 2016/05/04 15:08:08, Alexei Svitkine wrote:
> Nit: This line is no longer needed, right?

https://codereview.chromium.org/1948663003/

Powered by Google App Engine
This is Rietveld 408576698