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

Issue 215803002: Remove CommandBuffer::GetTransferBuffer. (Closed)

Created:
6 years, 9 months ago by piman
Modified:
6 years, 8 months ago
CC:
chromium-reviews, viettrungluu+watch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, Aaron Boodman, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, abarth-chromium, ben+mojo_chromium.org, darin (slow to review)
Visibility:
Public.

Description

Remove CommandBuffer::GetTransferBuffer. The only time we call GetTransferBuffer is on Pepper, right after CreateTransferBuffer, so combine the two. This lets us dramatically remove all the maintenance burden (maps) and extra IPCs. Also separate service-only calls out of CommandBuffer, into CommandBufferServiceBase BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260806

Patch Set 1 #

Patch Set 2 : Fix NaClMessageScannerTest #

Total comments: 9

Patch Set 3 : fix Pepper #

Patch Set 4 : fix mojo too #

Patch Set 5 : gyp fix #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -400 lines) Patch
M content/common/gpu/client/command_buffer_proxy_impl.h View 2 chunks +0 lines, -9 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 4 chunks +0 lines, -68 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 2 chunks +0 lines, -36 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 chunk +0 lines, -7 lines 0 comments Download
M content/renderer/pepper/ppb_graphics_3d_impl.h View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M content/renderer/pepper/ppb_graphics_3d_impl.cc View 1 2 3 4 5 3 chunks +4 lines, -27 lines 0 comments Download
M gpu/command_buffer/client/client_test_helper.h View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/common/command_buffer.h View 2 chunks +0 lines, -18 lines 0 comments Download
M gpu/command_buffer/common/command_buffer_mock.h View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/command_buffer_service.h View 2 chunks +25 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gpu_scheduler.h View 3 chunks +3 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gpu_scheduler.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.h View 3 chunks +2 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 2 chunks +0 lines, -18 lines 0 comments Download
M mojo/examples/pepper_container_app/graphics_3d_resource.h View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M mojo/examples/pepper_container_app/graphics_3d_resource.cc View 1 2 3 4 5 2 chunks +4 lines, -9 lines 0 comments Download
M mojo/gles2/command_buffer_client_impl.h View 3 chunks +0 lines, -9 lines 0 comments Download
M mojo/gles2/command_buffer_client_impl.cc View 3 chunks +0 lines, -37 lines 0 comments Download
M mojo/mojo_examples.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/nacl_message_scanner.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/nacl_message_scanner_unittest.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.h View 2 chunks +0 lines, -9 lines 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.cc View 1 2 3 chunks +13 lines, -63 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 1 chunk +3 lines, -6 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.h View 1 2 2 chunks +7 lines, -10 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.cc View 1 2 5 chunks +22 lines, -42 lines 0 comments Download
M ppapi/thunk/ppb_graphics_3d_api.h View 1 2 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
piman
sievers: please review jschuh: IPC changes (ppapi_messages.h, gpu_messages.h) darin: mojo/ OWNER yzshen: ppapi/ OWNER
6 years, 9 months ago (2014-03-27 23:23:03 UTC) #1
jschuh
ipc security lgtm (notes: message removal and consolidation, minor attack surface reduction from two-step to ...
6 years, 9 months ago (2014-03-27 23:32:44 UTC) #2
darin (slow to review)
LGTM for src/mojo/
6 years, 9 months ago (2014-03-28 00:03:38 UTC) #3
piman
-yzshen (forgot he was out) +bbudge for ppapi/
6 years, 9 months ago (2014-03-28 03:37:54 UTC) #4
bbudge
One comment, otherwise ppapi LGTM. https://codereview.chromium.org/215803002/diff/20001/ppapi/proxy/ppapi_command_buffer_proxy.cc File ppapi/proxy/ppapi_command_buffer_proxy.cc (right): https://codereview.chromium.org/215803002/diff/20001/ppapi/proxy/ppapi_command_buffer_proxy.cc#newcode126 ppapi/proxy/ppapi_command_buffer_proxy.cc:126: if ((*id) <= 0 ...
6 years, 9 months ago (2014-03-28 03:45:47 UTC) #5
piman
https://codereview.chromium.org/215803002/diff/20001/ppapi/proxy/ppapi_command_buffer_proxy.cc File ppapi/proxy/ppapi_command_buffer_proxy.cc (right): https://codereview.chromium.org/215803002/diff/20001/ppapi/proxy/ppapi_command_buffer_proxy.cc#newcode126 ppapi/proxy/ppapi_command_buffer_proxy.cc:126: if ((*id) <= 0 || !handle.is_shmem()) On 2014/03/28 03:45:47, ...
6 years, 9 months ago (2014-03-28 04:47:54 UTC) #6
bbudge
https://codereview.chromium.org/215803002/diff/20001/ppapi/proxy/ppapi_command_buffer_proxy.cc File ppapi/proxy/ppapi_command_buffer_proxy.cc (right): https://codereview.chromium.org/215803002/diff/20001/ppapi/proxy/ppapi_command_buffer_proxy.cc#newcode126 ppapi/proxy/ppapi_command_buffer_proxy.cc:126: if ((*id) <= 0 || !handle.is_shmem()) On 2014/03/28 04:47:55, ...
6 years, 9 months ago (2014-03-28 05:43:29 UTC) #7
bbudge
https://codereview.chromium.org/215803002/diff/20001/ppapi/proxy/ppapi_command_buffer_proxy.cc File ppapi/proxy/ppapi_command_buffer_proxy.cc (right): https://codereview.chromium.org/215803002/diff/20001/ppapi/proxy/ppapi_command_buffer_proxy.cc#newcode126 ppapi/proxy/ppapi_command_buffer_proxy.cc:126: if ((*id) <= 0 || !handle.is_shmem()) On 2014/03/28 05:43:30, ...
6 years, 9 months ago (2014-03-28 05:51:30 UTC) #8
piman
https://codereview.chromium.org/215803002/diff/20001/ppapi/proxy/ppapi_command_buffer_proxy.cc File ppapi/proxy/ppapi_command_buffer_proxy.cc (right): https://codereview.chromium.org/215803002/diff/20001/ppapi/proxy/ppapi_command_buffer_proxy.cc#newcode126 ppapi/proxy/ppapi_command_buffer_proxy.cc:126: if ((*id) <= 0 || !handle.is_shmem()) On 2014/03/28 05:51:31, ...
6 years, 9 months ago (2014-03-28 05:54:02 UTC) #9
no sievers
LGTM. Liking the cmdbuffer service interface split. https://codereview.chromium.org/215803002/diff/20001/content/renderer/pepper/ppb_graphics_3d_impl.cc File content/renderer/pepper/ppb_graphics_3d_impl.cc (right): https://codereview.chromium.org/215803002/diff/20001/content/renderer/pepper/ppb_graphics_3d_impl.cc#newcode122 content/renderer/pepper/ppb_graphics_3d_impl.cc:122: if (id ...
6 years, 8 months ago (2014-03-28 21:01:02 UTC) #10
piman
PTAL, I had messed up pepper, because I was destroying the shm before having a ...
6 years, 8 months ago (2014-03-28 23:23:40 UTC) #11
piman
PTAL, I had messed up pepper, because I was destroying the shm before having a ...
6 years, 8 months ago (2014-03-28 23:23:43 UTC) #12
piman
The CQ bit was checked by piman@chromium.org
6 years, 8 months ago (2014-03-31 20:55:20 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/215803002/80001
6 years, 8 months ago (2014-03-31 20:57:02 UTC) #14
epenner
The CQ bit was unchecked by epenner@chromium.org
6 years, 8 months ago (2014-03-31 21:13:05 UTC) #15
epenner
On 2014/03/31 21:13:05, epenner wrote: > The CQ bit was unchecked by mailto:epenner@chromium.org If it's ...
6 years, 8 months ago (2014-03-31 21:15:52 UTC) #16
epenner
The CQ bit was checked by epenner@chromium.org
6 years, 8 months ago (2014-04-01 00:42:32 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/215803002/80001
6 years, 8 months ago (2014-04-01 00:42:54 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 00:43:27 UTC) #19
commit-bot: I haz the power
Failed to apply patch for content/renderer/pepper/ppb_graphics_3d_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-01 00:43:28 UTC) #20
epenner
And... That's my fault. Sorry about that. I don't know if my patch needs a ...
6 years, 8 months ago (2014-04-01 01:14:02 UTC) #21
piman
On 2014/04/01 01:14:02, epenner wrote: > And... That's my fault. Sorry about that. I don't ...
6 years, 8 months ago (2014-04-01 02:51:00 UTC) #22
piman
The CQ bit was checked by piman@chromium.org
6 years, 8 months ago (2014-04-01 02:52:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/215803002/100001
6 years, 8 months ago (2014-04-01 02:53:00 UTC) #24
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 09:06:46 UTC) #25
Message was sent while issue was closed.
Change committed as 260806

Powered by Google App Engine
This is Rietveld 408576698