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

Issue 703463005: Re-land: content: Cleanup GpuMemoryBuffers when child process is removed. (Closed)

Created:
6 years, 1 month ago by reveman
Modified:
6 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@gpu-memory-buffer-id-refactor
Project:
chromium
Visibility:
Public.

Description

Re-land: content: Cleanup GpuMemoryBuffers when child process is removed. This keeps track of buffers allocated for child processes in BrowserGpuMemoryBufferManager and makes sure GpuMemoryBufferImpl::DeletedByChildProcess is called appropriately when a process is removed. BUG= Committed: https://crrev.com/dca0e8fc4e127398a1da5dbbfa12c3425b65958f Cr-Commit-Position: refs/heads/master@{#303136}

Patch Set 1 #

Patch Set 2 : some nits #

Patch Set 3 : handle allocation failure correctly #

Total comments: 2

Patch Set 4 : nit #

Patch Set 5 : add DISALLOW_COPY_AND_ASSIGN and fix unit test #

Patch Set 6 : add manager null check to ~RenderMessageFilter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -39 lines) Patch
M content/browser/gpu/browser_gpu_memory_buffer_manager.h View 1 2 3 4 2 chunks +14 lines, -2 lines 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.cc View 1 2 3 4 chunks +109 lines, -21 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 3 chunks +9 lines, -3 lines 0 comments Download
M content/child/child_gpu_memory_buffer_manager.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M content/common/child_process_host_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/common/child_process_host_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/child_process_messages.h View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
reveman
6 years, 1 month ago (2014-11-05 02:17:41 UTC) #2
piman
LGTM. It's safer too not to rely on the renderer's provided type.
6 years, 1 month ago (2014-11-05 06:08:03 UTC) #3
reveman
+kenrb for content/common/child_process_messages.h
6 years, 1 month ago (2014-11-05 07:08:38 UTC) #5
alexst (slow to review)
lgtm https://codereview.chromium.org/703463005/diff/40001/content/browser/gpu/browser_gpu_memory_buffer_manager.cc File content/browser/gpu/browser_gpu_memory_buffer_manager.cc (right): https://codereview.chromium.org/703463005/diff/40001/content/browser/gpu/browser_gpu_memory_buffer_manager.cc#newcode146 content/browser/gpu/browser_gpu_memory_buffer_manager.cc:146: // This can happen if a child process ...
6 years, 1 month ago (2014-11-05 13:51:23 UTC) #6
reveman
https://codereview.chromium.org/703463005/diff/40001/content/browser/gpu/browser_gpu_memory_buffer_manager.cc File content/browser/gpu/browser_gpu_memory_buffer_manager.cc (right): https://codereview.chromium.org/703463005/diff/40001/content/browser/gpu/browser_gpu_memory_buffer_manager.cc#newcode146 content/browser/gpu/browser_gpu_memory_buffer_manager.cc:146: // This can happen if a child process manage ...
6 years, 1 month ago (2014-11-05 16:22:51 UTC) #7
kenrb
ipc lgtm
6 years, 1 month ago (2014-11-05 22:52:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/703463005/60001
6 years, 1 month ago (2014-11-05 23:05:58 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/3250)
6 years, 1 month ago (2014-11-06 00:23:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/703463005/60001
6 years, 1 month ago (2014-11-06 00:40:22 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/3285)
6 years, 1 month ago (2014-11-06 01:39:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/703463005/80001
6 years, 1 month ago (2014-11-06 04:45:53 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 1 month ago (2014-11-06 05:48:37 UTC) #19
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/32e22ea8b72f52ac89e5d5720d1a26596f015caf Cr-Commit-Position: refs/heads/master@{#302968}
6 years, 1 month ago (2014-11-06 05:49:06 UTC) #20
yhirano
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/709433002/ by yhirano@chromium.org. ...
6 years, 1 month ago (2014-11-06 08:24:01 UTC) #21
yhirano
On 2014/11/06 08:24:01, yhirano wrote: > A revert of this CL (patchset #5 id:80001) has ...
6 years, 1 month ago (2014-11-06 10:47:33 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/703463005/100001
6 years, 1 month ago (2014-11-06 23:38:13 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 1 month ago (2014-11-07 00:46:21 UTC) #25
commit-bot: I haz the power
6 years, 1 month ago (2014-11-07 00:47:07 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/dca0e8fc4e127398a1da5dbbfa12c3425b65958f
Cr-Commit-Position: refs/heads/master@{#303136}

Powered by Google App Engine
This is Rietveld 408576698