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

Issue 1249313004: Remove GPU relinquish resources infrastructure and stop GPU process. (Closed)

Created:
5 years, 5 months ago by derekjchow1
Modified:
5 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, esum, jam, 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

Remove GPU relinquish resources infrastructure and stop GPU process. Previously, chromecast depended on a "Relinquish Resources" code path that would force the GPU process to release all OpenGL and EGL resources. Rather than use Relinquish Resources, this CL adopts a new technique that asks the GPU process to terminate, releasing all resources. BUG=468192 R=zmo@chromium.org,dcheng@chromium.org,halliwell@chromium.org Committed: https://crrev.com/1b0f3bbb05db67ce9e2c9c1d0bf7eb4ca852f5fc Cr-Commit-Position: refs/heads/master@{#341165}

Patch Set 1 #

Patch Set 2 : Revert 44a73aac041d87ae260a46f8c8e917af0e3a29ce #

Patch Set 3 : Remove relinquish display from ozone platforms. #

Patch Set 4 : Stop GPU process functionality #

Total comments: 3

Patch Set 5 : Remove TODO #

Patch Set 6 : Actually remove TODO #

Total comments: 1

Patch Set 7 : Use const ref #

Total comments: 5

Patch Set 8 : Only skip recording crash in ~GpuProcessHost() #

Total comments: 3

Patch Set 9 : Fix places where RecordProcessCrash can be called. #

Patch Set 10 : Remove expecting_shutdown_. #

Total comments: 1

Patch Set 11 : Remove gpu_crash_recorded_. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -166 lines) Patch
M content/browser/browser_child_process_host_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -3 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +12 lines, -8 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.h View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 1 2 3 4 5 6 5 chunks +13 lines, -13 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.h View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 2 3 7 chunks +4 lines, -35 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 3 chunks +3 lines, -8 lines 0 comments Download
M ui/gl/gl_surface.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M ui/gl/gl_surface.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M ui/gl/gl_surface_egl.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_surface_egl.cc View 1 8 chunks +10 lines, -62 lines 0 comments Download
M ui/ozone/platform/cast/gpu_platform_support_cast.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ui/ozone/platform/cast/gpu_platform_support_cast.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M ui/ozone/public/gpu_platform_support.h View 1 2 chunks +0 lines, -3 lines 0 comments Download
M ui/ozone/public/gpu_platform_support.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 30 (8 generated)
derekjchow1
Hi all, Please take a look. We've played with stopping the GPU process instead of ...
5 years, 5 months ago (2015-07-23 19:03:06 UTC) #1
halliwell
On 2015/07/23 19:03:06, derekjchow1 wrote: > Hi all, > > Please take a look. We've ...
5 years, 5 months ago (2015-07-25 17:00:30 UTC) #3
halliwell
https://codereview.chromium.org/1249313004/diff/60001/content/browser/gpu/gpu_process_host_ui_shim.h File content/browser/gpu/gpu_process_host_ui_shim.h (right): https://codereview.chromium.org/1249313004/diff/60001/content/browser/gpu/gpu_process_host_ui_shim.h#newcode69 content/browser/gpu/gpu_process_host_ui_shim.h:69: // TODO(derekjchow): Make this API prettier. I don't understand ...
5 years, 5 months ago (2015-07-25 17:00:39 UTC) #4
alexst (slow to review)
On 2015/07/25 17:00:39, halliwell wrote: > https://codereview.chromium.org/1249313004/diff/60001/content/browser/gpu/gpu_process_host_ui_shim.h > File content/browser/gpu/gpu_process_host_ui_shim.h (right): > > https://codereview.chromium.org/1249313004/diff/60001/content/browser/gpu/gpu_process_host_ui_shim.h#newcode69 > ...
5 years, 4 months ago (2015-07-27 15:25:44 UTC) #5
Zhenyao Mo
The content side looks good to me, but I am not a content/common/gpu owner, so ...
5 years, 4 months ago (2015-07-27 16:21:39 UTC) #7
Zhenyao Mo
https://codereview.chromium.org/1249313004/diff/100001/content/browser/gpu/gpu_process_host_ui_shim.h File content/browser/gpu/gpu_process_host_ui_shim.h (right): https://codereview.chromium.org/1249313004/diff/100001/content/browser/gpu/gpu_process_host_ui_shim.h#newcode69 content/browser/gpu/gpu_process_host_ui_shim.h:69: void StopGpuProcess(base::Closure callback); should callback be const reference type?
5 years, 4 months ago (2015-07-27 16:23:12 UTC) #8
jbauman
lgtm
5 years, 4 months ago (2015-07-27 20:19:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1249313004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1249313004/120001
5 years, 4 months ago (2015-07-28 15:55:08 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/82627)
5 years, 4 months ago (2015-07-28 16:03:23 UTC) #14
derekjchow1
+sievers for ui/gl/ https://codereview.chromium.org/1249313004/diff/60001/content/browser/gpu/gpu_process_host_ui_shim.h File content/browser/gpu/gpu_process_host_ui_shim.h (right): https://codereview.chromium.org/1249313004/diff/60001/content/browser/gpu/gpu_process_host_ui_shim.h#newcode69 content/browser/gpu/gpu_process_host_ui_shim.h:69: // TODO(derekjchow): Make this API prettier. ...
5 years, 4 months ago (2015-07-28 16:14:57 UTC) #16
dcheng
https://codereview.chromium.org/1249313004/diff/120001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/1249313004/diff/120001/content/browser/gpu/gpu_process_host.cc#newcode1045 content/browser/gpu/gpu_process_host.cc:1045: if (status == base::TERMINATION_STATUS_NORMAL_TERMINATION) { Why does this set ...
5 years, 4 months ago (2015-07-28 18:47:21 UTC) #17
derekjchow1
https://codereview.chromium.org/1249313004/diff/120001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/1249313004/diff/120001/content/browser/gpu/gpu_process_host.cc#newcode1045 content/browser/gpu/gpu_process_host.cc:1045: if (status == base::TERMINATION_STATUS_NORMAL_TERMINATION) { On 2015/07/28 18:47:21, dcheng ...
5 years, 4 months ago (2015-07-28 18:57:28 UTC) #18
dcheng
IPC changes LGTM https://codereview.chromium.org/1249313004/diff/120001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/1249313004/diff/120001/content/browser/gpu/gpu_process_host.cc#newcode1045 content/browser/gpu/gpu_process_host.cc:1045: if (status == base::TERMINATION_STATUS_NORMAL_TERMINATION) { On ...
5 years, 4 months ago (2015-07-28 19:04:27 UTC) #19
no sievers
https://codereview.chromium.org/1249313004/diff/120001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/1249313004/diff/120001/content/browser/gpu/gpu_process_host.cc#newcode1045 content/browser/gpu/gpu_process_host.cc:1045: if (status == base::TERMINATION_STATUS_NORMAL_TERMINATION) { Actually it's not quite ...
5 years, 4 months ago (2015-07-28 19:21:20 UTC) #20
derekjchow1
https://codereview.chromium.org/1249313004/diff/120001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/1249313004/diff/120001/content/browser/gpu/gpu_process_host.cc#newcode1045 content/browser/gpu/gpu_process_host.cc:1045: if (status == base::TERMINATION_STATUS_NORMAL_TERMINATION) { On 2015/07/28 19:21:20, sievers ...
5 years, 4 months ago (2015-07-28 21:01:44 UTC) #21
no sievers
https://codereview.chromium.org/1249313004/diff/140001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/1249313004/diff/140001/content/browser/gpu/gpu_process_host.cc#newcode440 content/browser/gpu/gpu_process_host.cc:440: RecordProcessCrash(); That's better, but calling RecordProcessCrash() here at all ...
5 years, 4 months ago (2015-07-28 21:28:50 UTC) #22
no sievers
https://codereview.chromium.org/1249313004/diff/140001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/1249313004/diff/140001/content/browser/gpu/gpu_process_host.cc#newcode440 content/browser/gpu/gpu_process_host.cc:440: RecordProcessCrash(); On 2015/07/28 21:28:50, sievers wrote: > That's better, ...
5 years, 4 months ago (2015-07-28 21:31:46 UTC) #23
derekjchow1
https://codereview.chromium.org/1249313004/diff/140001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/1249313004/diff/140001/content/browser/gpu/gpu_process_host.cc#newcode440 content/browser/gpu/gpu_process_host.cc:440: RecordProcessCrash(); On 2015/07/28 21:31:46, sievers wrote: > On 2015/07/28 ...
5 years, 4 months ago (2015-07-29 18:35:40 UTC) #24
no sievers
lgtm! https://codereview.chromium.org/1249313004/diff/180001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/1249313004/diff/180001/content/browser/gpu/gpu_process_host.cc#newcode1040 content/browser/gpu/gpu_process_host.cc:1040: if (gpu_crash_recorded_) You can remove this boolean also ...
5 years, 4 months ago (2015-07-29 19:05:19 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1249313004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1249313004/200001
5 years, 4 months ago (2015-07-30 18:45:36 UTC) #28
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 4 months ago (2015-07-30 18:51:42 UTC) #29
commit-bot: I haz the power
5 years, 4 months ago (2015-07-30 18:52:29 UTC) #30
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/1b0f3bbb05db67ce9e2c9c1d0bf7eb4ca852f5fc
Cr-Commit-Position: refs/heads/master@{#341165}

Powered by Google App Engine
This is Rietveld 408576698