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

Issue 1345813002: Added a unique command buffer ID for command buffers. (Closed)

Created:
5 years, 3 months ago by David Yen
Modified:
5 years, 3 months ago
Reviewers:
rjkroege, bbudge, sky, dcheng, piman
CC:
chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, erick_chromium.org, jam, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, sievers+watch_chromium.org, no sievers, sunnyps, vmiura
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added a unique command buffer ID for command buffers. R=piman@chromium.org BUG=514815 Committed: https://crrev.com/12e459621d3b0a4ecb425c3ebde19aacb2545838 Cr-Commit-Position: refs/heads/master@{#349546}

Patch Set 1 #

Patch Set 2 : Specify mojo and ppapi command buffers to be invalid #

Patch Set 3 : Set namespace id and command buffer id for everything except for mojo and ppapi #

Patch Set 4 : rebase #

Patch Set 5 : Fixed copyright #

Total comments: 1

Patch Set 6 : Added gpu namespace for gles2_conform_support/egl/display.cc #

Total comments: 10

Patch Set 7 : Moved functions to GpuControl #

Total comments: 2

Patch Set 8 : Implemented namespace id/command buffer id for ppapi #

Patch Set 9 : Added missing new files, reverted some changes #

Patch Set 10 : Fixed tests #

Total comments: 3

Patch Set 11 : Fixed GLManager, added todo for rjkroege #

Patch Set 12 : Removed CommandBufferIDPair #

Patch Set 13 : Really fix GLManager now. #

Patch Set 14 : Added NamespaceID and CommandBufferID for CommandBufferLocal #

Total comments: 8

Patch Set 15 : place function in anonymous namespace, use enum class #

Total comments: 2

Patch Set 16 : "anonymous namespace" -> "namespace" #

Patch Set 17 : rebase #

Patch Set 18 : Fix bad merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -31 lines) Patch
M components/mus/gles2/command_buffer_local.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M components/mus/gles2/command_buffer_local.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +10 lines, -0 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +17 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/pepper/ppb_graphics_3d_impl.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/pepper/ppb_graphics_3d_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +8 lines, -4 lines 0 comments Download
M content/renderer/pepper/resource_creation_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/pepper/resource_creation_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/client_test_helper.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gpu_control.h View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +12 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +12 lines, -1 line 0 comments Download
M gpu/command_buffer/tests/gl_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/gles2_conform_support/egl/display.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/gles2_conform_support/egl/display.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -0 lines 0 comments Download
M mojo/gles2/command_buffer_client_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/gles2/command_buffer_client_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +12 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -1 line 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +12 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +20 lines, -11 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 49 (13 generated)
David Yen
5 years, 3 months ago (2015-09-15 18:40:43 UTC) #1
David Yen
+jam for mojo changes. For ppapi, we should be specifying the command buffer ID that ...
5 years, 3 months ago (2015-09-15 19:22:21 UTC) #2
David Yen
5 years, 3 months ago (2015-09-15 19:22:55 UTC) #4
David Yen
On 2015/09/15 19:22:55, David Yen wrote: Actually I think these command buffer IDs need to ...
5 years, 3 months ago (2015-09-15 21:03:36 UTC) #5
David Yen
+sievers@ for review. I pulled out the command buffer ID changes because erick@ needs it ...
5 years, 3 months ago (2015-09-15 21:32:48 UTC) #7
jam
On 2015/09/15 19:22:21, David Yen wrote: > +jam for mojo changes. > > For ppapi, ...
5 years, 3 months ago (2015-09-15 22:13:13 UTC) #9
rjkroege
https://codereview.chromium.org/1345813002/diff/80001/mojo/gles2/command_buffer_client_impl.cc File mojo/gles2/command_buffer_client_impl.cc (right): https://codereview.chromium.org/1345813002/diff/80001/mojo/gles2/command_buffer_client_impl.cc#newcode123 mojo/gles2/command_buffer_client_impl.cc:123: : CommandBuffer(gpu::kCommandBufferNamespace_Invalid, 0), Is this right? Your goal with ...
5 years, 3 months ago (2015-09-15 22:48:41 UTC) #10
piman
https://codereview.chromium.org/1345813002/diff/100001/components/mus/gles2/command_buffer_driver.cc File components/mus/gles2/command_buffer_driver.cc (right): https://codereview.chromium.org/1345813002/diff/100001/components/mus/gles2/command_buffer_driver.cc#newcode102 components/mus/gles2/command_buffer_driver.cc:102: kCommandBufferNamespace_Invalid, 0)); I guess we need a namespace for ...
5 years, 3 months ago (2015-09-15 22:51:06 UTC) #11
David Yen
https://codereview.chromium.org/1345813002/diff/100001/components/mus/gles2/command_buffer_driver.cc File components/mus/gles2/command_buffer_driver.cc (right): https://codereview.chromium.org/1345813002/diff/100001/components/mus/gles2/command_buffer_driver.cc#newcode102 components/mus/gles2/command_buffer_driver.cc:102: kCommandBufferNamespace_Invalid, 0)); On 2015/09/15 22:51:05, piman (slow to review) ...
5 years, 3 months ago (2015-09-15 23:09:03 UTC) #12
piman
https://codereview.chromium.org/1345813002/diff/100001/content/common/gpu/gpu_messages.h File content/common/gpu/gpu_messages.h (right): https://codereview.chromium.org/1345813002/diff/100001/content/common/gpu/gpu_messages.h#newcode478 content/common/gpu/gpu_messages.h:478: uint64, /* command_buffer_id */ On 2015/09/15 23:09:03, David Yen ...
5 years, 3 months ago (2015-09-15 23:17:17 UTC) #13
David Yen
PTAL. Although I am still unclear how the mojo and ppapi versions should look like. ...
5 years, 3 months ago (2015-09-16 00:02:50 UTC) #14
piman
LGTM. For ppapi, feel free to leave as a TODO... here's a copy&paste of what ...
5 years, 3 months ago (2015-09-16 00:50:48 UTC) #15
rjkroege
https://codereview.chromium.org/1345813002/diff/120001/mojo/gles2/command_buffer_client_impl.cc File mojo/gles2/command_buffer_client_impl.cc (right): https://codereview.chromium.org/1345813002/diff/120001/mojo/gles2/command_buffer_client_impl.cc#newcode401 mojo/gles2/command_buffer_client_impl.cc:401: NOTIMPLEMENTED(); So, there must be a point to this ...
5 years, 3 months ago (2015-09-16 18:55:22 UTC) #16
piman
https://codereview.chromium.org/1345813002/diff/120001/mojo/gles2/command_buffer_client_impl.cc File mojo/gles2/command_buffer_client_impl.cc (right): https://codereview.chromium.org/1345813002/diff/120001/mojo/gles2/command_buffer_client_impl.cc#newcode401 mojo/gles2/command_buffer_client_impl.cc:401: NOTIMPLEMENTED(); On 2015/09/16 18:55:22, rjkroege wrote: > So, there ...
5 years, 3 months ago (2015-09-16 20:18:07 UTC) #17
rjkroege
On 2015/09/16 20:18:07, piman (slow to review) wrote: > https://codereview.chromium.org/1345813002/diff/120001/mojo/gles2/command_buffer_client_impl.cc > File mojo/gles2/command_buffer_client_impl.cc (right): > ...
5 years, 3 months ago (2015-09-16 21:01:06 UTC) #18
David Yen
+dcheng@ for ppapi_messages.h changes piman@, I implemented the changes necessary to plumb the ppapi namespace ...
5 years, 3 months ago (2015-09-16 21:30:30 UTC) #20
David Yen
+bbudge for ppapi changes.
5 years, 3 months ago (2015-09-16 21:32:47 UTC) #22
rjkroege
On 2015/09/16 21:30:30, David Yen wrote: > +dcheng@ for ppapi_messages.h changes > > piman@, I ...
5 years, 3 months ago (2015-09-16 21:46:03 UTC) #25
piman
lgtm https://codereview.chromium.org/1345813002/diff/180001/content/renderer/pepper/ppb_graphics_3d_impl.cc File content/renderer/pepper/ppb_graphics_3d_impl.cc (right): https://codereview.chromium.org/1345813002/diff/180001/content/renderer/pepper/ppb_graphics_3d_impl.cc#newcode308 content/renderer/pepper/ppb_graphics_3d_impl.cc:308: id_pair->namespace_id = command_buffer_->GetNamespaceID(); Arguably you could hardcode the ...
5 years, 3 months ago (2015-09-16 21:55:13 UTC) #26
David Yen
On 2015/09/16 21:46:03, rjkroege wrote: > On 2015/09/16 21:30:30, David Yen wrote: > > +dcheng@ ...
5 years, 3 months ago (2015-09-16 22:09:18 UTC) #27
bbudge
https://codereview.chromium.org/1345813002/diff/180001/content/renderer/pepper/ppb_graphics_3d_impl.cc File content/renderer/pepper/ppb_graphics_3d_impl.cc (right): https://codereview.chromium.org/1345813002/diff/180001/content/renderer/pepper/ppb_graphics_3d_impl.cc#newcode308 content/renderer/pepper/ppb_graphics_3d_impl.cc:308: id_pair->namespace_id = command_buffer_->GetNamespaceID(); On 2015/09/16 21:55:13, piman (slow to ...
5 years, 3 months ago (2015-09-16 22:17:19 UTC) #28
David Yen
https://codereview.chromium.org/1345813002/diff/180001/content/renderer/pepper/ppb_graphics_3d_impl.cc File content/renderer/pepper/ppb_graphics_3d_impl.cc (right): https://codereview.chromium.org/1345813002/diff/180001/content/renderer/pepper/ppb_graphics_3d_impl.cc#newcode308 content/renderer/pepper/ppb_graphics_3d_impl.cc:308: id_pair->namespace_id = command_buffer_->GetNamespaceID(); On 2015/09/16 22:17:18, bbudge wrote: > ...
5 years, 3 months ago (2015-09-16 22:25:28 UTC) #29
bbudge
Thanks. LGTM
5 years, 3 months ago (2015-09-16 22:32:03 UTC) #30
David Yen
+sky@ for review of components/mus/gles2/command_buffer_local.cc/h mojo/gles2/command_buffer_client_impl.cc/h ping dcheng@ for ppapi_messages.h review
5 years, 3 months ago (2015-09-17 16:46:25 UTC) #32
sky
https://codereview.chromium.org/1345813002/diff/250001/components/mus/gles2/command_buffer_local.cc File components/mus/gles2/command_buffer_local.cc (right): https://codereview.chromium.org/1345813002/diff/250001/components/mus/gles2/command_buffer_local.cc#newcode216 components/mus/gles2/command_buffer_local.cc:216: NOTIMPLEMENTED(); Are these going to be spammy? What is ...
5 years, 3 months ago (2015-09-17 17:03:06 UTC) #33
David Yen
https://codereview.chromium.org/1345813002/diff/250001/components/mus/gles2/command_buffer_local.cc File components/mus/gles2/command_buffer_local.cc (right): https://codereview.chromium.org/1345813002/diff/250001/components/mus/gles2/command_buffer_local.cc#newcode216 components/mus/gles2/command_buffer_local.cc:216: NOTIMPLEMENTED(); On 2015/09/17 17:03:06, sky wrote: > Are these ...
5 years, 3 months ago (2015-09-17 17:07:04 UTC) #34
dcheng
https://codereview.chromium.org/1345813002/diff/250001/content/common/gpu/client/command_buffer_proxy_impl.cc File content/common/gpu/client/command_buffer_proxy_impl.cc (right): https://codereview.chromium.org/1345813002/diff/250001/content/common/gpu/client/command_buffer_proxy_impl.cc#newcode30 content/common/gpu/client/command_buffer_proxy_impl.cc:30: uint64_t CommandBufferProxyID(int channel_id, int32 route_id) { Nit: wrap this ...
5 years, 3 months ago (2015-09-17 17:08:18 UTC) #35
David Yen
https://codereview.chromium.org/1345813002/diff/250001/content/common/gpu/client/command_buffer_proxy_impl.cc File content/common/gpu/client/command_buffer_proxy_impl.cc (right): https://codereview.chromium.org/1345813002/diff/250001/content/common/gpu/client/command_buffer_proxy_impl.cc#newcode30 content/common/gpu/client/command_buffer_proxy_impl.cc:30: uint64_t CommandBufferProxyID(int channel_id, int32 route_id) { On 2015/09/17 17:08:18, ...
5 years, 3 months ago (2015-09-17 17:26:21 UTC) #36
sky
LGTM
5 years, 3 months ago (2015-09-17 19:19:56 UTC) #37
dcheng
lgtm https://codereview.chromium.org/1345813002/diff/270001/content/common/gpu/client/command_buffer_proxy_impl.cc File content/common/gpu/client/command_buffer_proxy_impl.cc (right): https://codereview.chromium.org/1345813002/diff/270001/content/common/gpu/client/command_buffer_proxy_impl.cc#newcode36 content/common/gpu/client/command_buffer_proxy_impl.cc:36: } // anonymous namespace Nit: usually people just ...
5 years, 3 months ago (2015-09-17 21:41:30 UTC) #38
David Yen
https://codereview.chromium.org/1345813002/diff/270001/content/common/gpu/client/command_buffer_proxy_impl.cc File content/common/gpu/client/command_buffer_proxy_impl.cc (right): https://codereview.chromium.org/1345813002/diff/270001/content/common/gpu/client/command_buffer_proxy_impl.cc#newcode36 content/common/gpu/client/command_buffer_proxy_impl.cc:36: } // anonymous namespace On 2015/09/17 21:41:30, dcheng wrote: ...
5 years, 3 months ago (2015-09-17 21:45:20 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1345813002/290001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1345813002/290001
5 years, 3 months ago (2015-09-17 21:47:46 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/99427) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 3 months ago (2015-09-17 21:53:45 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1345813002/330001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1345813002/330001
5 years, 3 months ago (2015-09-17 22:44:05 UTC) #47
commit-bot: I haz the power
Committed patchset #18 (id:330001)
5 years, 3 months ago (2015-09-18 00:13:58 UTC) #48
commit-bot: I haz the power
5 years, 3 months ago (2015-09-18 00:14:37 UTC) #49
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/12e459621d3b0a4ecb425c3ebde19aacb2545838
Cr-Commit-Position: refs/heads/master@{#349546}

Powered by Google App Engine
This is Rietveld 408576698