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

Issue 1936353002: Add a flag to not start GPU process on browser startup (Closed)

Created:
4 years, 7 months ago by qinmin
Modified:
4 years, 7 months ago
Reviewers:
Charlie Reis, Yaron
CC:
chromium-reviews, asanka, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a flag to not start GPU process on browser startup There is no need to start GPU process if user resumes a download in background. In this case, we only need to launch the browser process. The GPU process will be automatically created when user relaunches chrome app. BUG=608451 Committed: https://crrev.com/e1b968066f2e59bbc6f28f3ed5cbd3ba719d699b Cr-Commit-Position: refs/heads/master@{#391937}

Patch Set 1 #

Patch Set 2 : remove commandline flag #

Total comments: 2

Patch Set 3 : change willStartGpuProcess to shouldStartGpuProcess #

Total comments: 2

Patch Set 4 : nit #

Patch Set 5 : fix ContentShellTestApk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -15 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitializationActivity.java View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/init/BrowserParts.java View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/init/EmptyBrowserParts.java View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/android/browser_startup_controller.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/browser_startup_controller.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java View 1 2 3 4 5 chunks +13 lines, -2 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java View 1 2 3 4 11 chunks +11 lines, -11 lines 0 comments Download
M content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestActivity.java View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (19 generated)
qinmin
PTAL
4 years, 7 months ago (2016-05-02 20:34:05 UTC) #2
qinmin
Ted is OOO, + yfriedman for code review
4 years, 7 months ago (2016-05-03 17:04:10 UTC) #4
Yaron
Can you elaborate on how the GPU process ends up getting started when you go ...
4 years, 7 months ago (2016-05-03 18:03:10 UTC) #5
qinmin
On 2016/05/03 18:03:10, Yaron wrote: > Can you elaborate on how the GPU process ends ...
4 years, 7 months ago (2016-05-03 22:53:38 UTC) #6
qinmin
ok, added a new method in BrowserStartupController to avoid introducing the new commandline flag.
4 years, 7 months ago (2016-05-04 17:45:11 UTC) #7
Yaron
lgtm https://codereview.chromium.org/1936353002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java (right): https://codereview.chromium.org/1936353002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java#newcode323 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java:323: public boolean willStartGpuProcess() { s/will/should/
4 years, 7 months ago (2016-05-05 00:32:59 UTC) #8
qinmin
https://codereview.chromium.org/1936353002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java (right): https://codereview.chromium.org/1936353002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java#newcode323 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java:323: public boolean willStartGpuProcess() { On 2016/05/05 00:32:59, Yaron wrote: ...
4 years, 7 months ago (2016-05-05 16:49:57 UTC) #9
Charlie Reis
content/ LGTM with nit. https://codereview.chromium.org/1936353002/diff/40001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1936353002/diff/40001/content/browser/browser_main_loop.cc#newcode1249 content/browser/browser_main_loop.cc:1249: always_uses_gpu = StartGpuProcessOnBrowserStartup(); This sounds ...
4 years, 7 months ago (2016-05-05 16:55:00 UTC) #10
qinmin
https://codereview.chromium.org/1936353002/diff/40001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1936353002/diff/40001/content/browser/browser_main_loop.cc#newcode1249 content/browser/browser_main_loop.cc:1249: always_uses_gpu = StartGpuProcessOnBrowserStartup(); On 2016/05/05 16:55:00, Charlie Reis wrote: ...
4 years, 7 months ago (2016-05-05 17:05:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936353002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936353002/60001
4 years, 7 months ago (2016-05-05 17:07:40 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/65616)
4 years, 7 months ago (2016-05-05 17:22:14 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936353002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936353002/80001
4 years, 7 months ago (2016-05-05 19:08:37 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/65742)
4 years, 7 months ago (2016-05-05 19:29:02 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936353002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936353002/100001
4 years, 7 months ago (2016-05-05 19:35:13 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/61977)
4 years, 7 months ago (2016-05-05 20:07:44 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936353002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936353002/140001
4 years, 7 months ago (2016-05-05 21:27:46 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936353002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936353002/140001
4 years, 7 months ago (2016-05-05 22:19:47 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 7 months ago (2016-05-05 23:00:29 UTC) #36
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 23:02:01 UTC) #38
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e1b968066f2e59bbc6f28f3ed5cbd3ba719d699b
Cr-Commit-Position: refs/heads/master@{#391937}

Powered by Google App Engine
This is Rietveld 408576698