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

Issue 2496783002: gpu: Reuse existing code for shared memory allocation. (Closed)

Created:
4 years, 1 month ago by sadrul
Modified:
4 years, 1 month ago
CC:
chromium-reviews, erikchen, gavinp+memory_chromium.org, mac-reviews_chromium.org, piman+watch_chromium.org, rjkroege
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Reuse existing code for shared memory allocation. Introduce base::SharedMemory::TakeHandle() to take ownership of the handle to shared memory. This is in order to avoid unnecessary DuplicateHandle(), or GiveToProcess(), which is already taken care of by mojo, since these shm handles go over a mojo message-pipe. BUG=643746 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/f08f1e4acadc0e8d6ad4aae2b0702d5a0b2eee01 Cr-Commit-Position: refs/heads/master@{#432022}

Patch Set 1 #

Patch Set 2 : nacl #

Total comments: 3

Patch Set 3 : . #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -48 lines) Patch
M base/memory/shared_memory.h View 1 2 1 chunk +7 lines, -0 lines 1 comment Download
M base/memory/shared_memory_mac.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M base/memory/shared_memory_nacl.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M base/memory/shared_memory_posix.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M base/memory/shared_memory_win.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M content/common/child_process_host_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/common/child_process_host_impl.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M services/ui/ws/gpu_service_proxy.cc View 1 2 1 chunk +2 lines, -35 lines 0 comments Download

Messages

Total messages: 32 (19 generated)
sadrul
Hi! Would you mind looking at the //base/memory/ changes to see if that makes sense? ...
4 years, 1 month ago (2016-11-11 01:52:43 UTC) #7
sadrul
+thakis@ for Q about mac https://codereview.chromium.org/2496783002/diff/20001/base/memory/shared_memory_mac.cc File base/memory/shared_memory_mac.cc (right): https://codereview.chromium.org/2496783002/diff/20001/base/memory/shared_memory_mac.cc#newcode181 base/memory/shared_memory_mac.cc:181: NOTREACHED(); Can I do ...
4 years, 1 month ago (2016-11-11 02:00:30 UTC) #9
sadrul
+reveman@ for gpu changes. +piman@ for content changes.
4 years, 1 month ago (2016-11-14 16:45:23 UTC) #16
piman
Nice, love it. LGTM
4 years, 1 month ago (2016-11-14 18:49:02 UTC) #19
Nico
https://codereview.chromium.org/2496783002/diff/20001/base/memory/shared_memory_mac.cc File base/memory/shared_memory_mac.cc (right): https://codereview.chromium.org/2496783002/diff/20001/base/memory/shared_memory_mac.cc#newcode181 base/memory/shared_memory_mac.cc:181: NOTREACHED(); On 2016/11/11 02:00:30, sadrul wrote: > Can I ...
4 years, 1 month ago (2016-11-14 18:53:52 UTC) #20
Lei Zhang
I'm going to defer to thakis, who is already looking at this.
4 years, 1 month ago (2016-11-14 19:00:29 UTC) #21
reveman
lgtm
4 years, 1 month ago (2016-11-14 19:01:48 UTC) #22
erikchen
https://codereview.chromium.org/2496783002/diff/20001/base/memory/shared_memory_mac.cc File base/memory/shared_memory_mac.cc (right): https://codereview.chromium.org/2496783002/diff/20001/base/memory/shared_memory_mac.cc#newcode181 base/memory/shared_memory_mac.cc:181: NOTREACHED(); On 2016/11/14 18:53:51, Nico wrote: > On 2016/11/11 ...
4 years, 1 month ago (2016-11-14 19:37:53 UTC) #24
erikchen
base/memory lgtm
4 years, 1 month ago (2016-11-14 19:39:04 UTC) #25
Nico
lgtm
4 years, 1 month ago (2016-11-14 20:02:36 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2496783002/40001
4 years, 1 month ago (2016-11-14 20:29:59 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-15 00:40:36 UTC) #30
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 00:45:02 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f08f1e4acadc0e8d6ad4aae2b0702d5a0b2eee01
Cr-Commit-Position: refs/heads/master@{#432022}

Powered by Google App Engine
This is Rietveld 408576698