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

Issue 211703003: GPU: 'Pass' SharedMemory when possible. (Closed)

Created:
6 years, 9 months ago by epenner
Modified:
6 years, 8 months ago
Reviewers:
viettrungluu, piman
CC:
chromium-reviews, viettrungluu+watch_chromium.org, jam, abarth-chromium, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, piman+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@GPU_ref_count_buffer
Visibility:
Public.

Description

GPU:'Pass' SharedMemory when possible. This avoids some duplication of shared memory handles just for the purposes of passing them around. Instead we Map immediately when the memory arrives in the process, and then 'Pass' the shared memory from there. BUG=177063, 353822 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259772

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove all duplication. #

Patch Set 3 : Add Buffer DCHECK that memory is already mapped. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -86 lines) Patch
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 1 chunk +11 lines, -2 lines 0 comments Download
M gpu/command_buffer/common/buffer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/common/buffer.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M gpu/command_buffer/service/command_buffer_service.h View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/command_buffer_service.cc View 2 chunks +6 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/transfer_buffer_manager.h View 2 chunks +8 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/transfer_buffer_manager.cc View 2 chunks +3 lines, -20 lines 0 comments Download
M gpu/command_buffer/service/transfer_buffer_manager_unittest.cc View 4 chunks +40 lines, -45 lines 0 comments Download
M mojo/services/gles2/command_buffer_impl.cc View 1 1 chunk +10 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
epenner
https://codereview.chromium.org/211703003/diff/1/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (left): https://codereview.chromium.org/211703003/diff/1/content/common/gpu/gpu_command_buffer_stub.cc#oldcode686 content/common/gpu/gpu_command_buffer_stub.cc:686: base::SharedMemoryHandle transfer_buffer, Since this is just a handle, the ...
6 years, 9 months ago (2014-03-25 22:14:52 UTC) #1
epenner
Ptal. I've got some comments on what was missing and some last clarifications. The only ...
6 years, 9 months ago (2014-03-25 22:16:01 UTC) #2
epenner
https://codereview.chromium.org/211703003/diff/1/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (left): https://codereview.chromium.org/211703003/diff/1/content/common/gpu/gpu_command_buffer_stub.cc#oldcode686 content/common/gpu/gpu_command_buffer_stub.cc:686: base::SharedMemoryHandle transfer_buffer, Hmm, is there even a possibility we ...
6 years, 9 months ago (2014-03-25 22:25:37 UTC) #3
epenner
https://codereview.chromium.org/211703003/diff/1/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (left): https://codereview.chromium.org/211703003/diff/1/content/common/gpu/gpu_command_buffer_stub.cc#oldcode686 content/common/gpu/gpu_command_buffer_stub.cc:686: base::SharedMemoryHandle transfer_buffer, On 2014/03/25 22:25:37, epenner wrote: > Hmm, ...
6 years, 9 months ago (2014-03-25 23:02:12 UTC) #4
piman
lgtm
6 years, 9 months ago (2014-03-25 23:42:49 UTC) #5
epenner
The CQ bit was checked by epenner@chromium.org
6 years, 9 months ago (2014-03-26 05:57:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/211703003/190001
6 years, 9 months ago (2014-03-26 05:57:05 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-26 06:36:49 UTC) #8
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=57474
6 years, 9 months ago (2014-03-26 06:36:50 UTC) #9
epenner
On 2014/03/26 06:36:50, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 9 months ago (2014-03-26 06:37:53 UTC) #10
viettrungluu
mojo OWNERS lgtm
6 years, 8 months ago (2014-03-26 15:43:47 UTC) #11
viettrungluu
The CQ bit was checked by viettrungluu@chromium.org
6 years, 8 months ago (2014-03-26 15:44:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/211703003/190001
6 years, 8 months ago (2014-03-26 15:44:09 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-26 16:13:54 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=288313
6 years, 8 months ago (2014-03-26 16:13:54 UTC) #15
viettrungluu
The CQ bit was checked by viettrungluu@chromium.org
6 years, 8 months ago (2014-03-26 19:14:05 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/211703003/190001
6 years, 8 months ago (2014-03-26 19:14:45 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-26 21:01:53 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) base_unittests, chrome_elf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=88447
6 years, 8 months ago (2014-03-26 21:01:54 UTC) #19
epenner
The CQ bit was checked by epenner@chromium.org
6 years, 8 months ago (2014-03-26 21:43:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/211703003/300001
6 years, 8 months ago (2014-03-26 21:44:22 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-27 02:25:44 UTC) #22
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 8 months ago (2014-03-27 02:25:44 UTC) #23
epenner
The CQ bit was checked by epenner@chromium.org
6 years, 8 months ago (2014-03-27 03:00:43 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/211703003/300001
6 years, 8 months ago (2014-03-27 03:02:12 UTC) #25
commit-bot: I haz the power
6 years, 8 months ago (2014-03-27 03:06:20 UTC) #26
Message was sent while issue was closed.
Change committed as 259772

Powered by Google App Engine
This is Rietveld 408576698