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

Issue 8566059: Add CommandBuffer::SetGetBuffer (Closed)

Created:
9 years, 1 month ago by greggman
Modified:
9 years ago
CC:
chromium-reviews, apatrick_chromium, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, Paweł Hajdan Jr., piman+watch_chromium.org, ihf+watch_chromium.org, ddorwin, xhwang
Visibility:
Public.

Description

Add CommandBuffer::SetGetBuffer As well as remove CommandBuffer::GetRingBuffer and change CommandBuffer::Initialize Before this change the service allocated and managed the command buffer. After this change the client uses CreateTransferBuffer, GetTransferBuffer, end potentially DeleteTransferBufffer to manage the command buffer. Another CL will actually make the client delete the command buffer on demand. TEST=unit tests and run some samples and a NaCl 3D game BUG=103989 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113250

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : compile errors in certain targets #

Patch Set 4 : etc #

Total comments: 6

Patch Set 5 : rebase + suggested fixes #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Patch Set 9 : rebase part 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+485 lines, -541 lines) Patch
M content/common/gpu/gpu_command_buffer_stub.h View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 4 chunks +9 lines, -15 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M content/renderer/gpu/command_buffer_proxy.h View 1 2 chunks +2 lines, -7 lines 0 comments Download
M content/renderer/gpu/command_buffer_proxy.cc View 1 2 3 4 5 4 chunks +10 lines, -62 lines 0 comments Download
M content/renderer/gpu/renderer_gl_context.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/client/cmd_buffer_helper.h View 2 chunks +9 lines, -1 line 0 comments Download
M gpu/command_buffer/client/cmd_buffer_helper.cc View 3 chunks +21 lines, -3 lines 0 comments Download
M gpu/command_buffer/client/cmd_buffer_helper_test.cc View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M gpu/command_buffer/client/fenced_allocator_test.cc View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest.cc View 1 2 3 4 5 39 chunks +134 lines, -101 lines 0 comments Download
M gpu/command_buffer/client/mapped_memory_unittest.cc View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M gpu/command_buffer/client/ring_buffer_test.cc View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M gpu/command_buffer/common/command_buffer.h View 1 2 3 4 2 chunks +5 lines, -7 lines 0 comments Download
M gpu/command_buffer/common/command_buffer_mock.h View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M gpu/command_buffer/common/command_buffer_mock.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/cmd_buffer_engine.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/cmd_parser.h View 2 chunks +10 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/cmd_parser.cc View 1 chunk +16 lines, -10 lines 0 comments Download
M gpu/command_buffer/service/cmd_parser_test.cc View 2 chunks +34 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/command_buffer_service.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/command_buffer_service.cc View 1 2 3 4 4 chunks +22 lines, -57 lines 0 comments Download
M gpu/command_buffer/service/common_decoder_unittest.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gpu_scheduler.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gpu_scheduler.cc View 1 2 3 4 2 chunks +23 lines, -15 lines 0 comments Download
M gpu/command_buffer/service/gpu_scheduler_unittest.cc View 1 2 3 4 7 chunks +32 lines, -19 lines 0 comments Download
M gpu/demos/framework/window.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M gpu/gles2_conform_support/egl/display.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ppapi/c/trusted/ppb_graphics_3d_trusted.h View 1 2 3 4 1 chunk +3 lines, -5 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_graphics_3d_rpc_server.cc View 1 2 3 4 1 chunk +6 lines, -20 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/command_buffer_nacl.h View 1 2 3 4 1 chunk +2 lines, -6 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/command_buffer_nacl.cc View 1 2 3 4 2 chunks +9 lines, -22 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.cc View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_graphics_3d.srpc View 2 chunks +7 lines, -8 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc View 1 2 3 4 5 2 chunks +5 lines, -9 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_server.cc View 1 2 3 4 5 2 chunks +6 lines, -7 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/trusted/srpcgen/ppb_rpc.h View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/untrusted/srpcgen/ppb_rpc.h View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.h View 2 chunks +5 lines, -5 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.cc View 1 2 3 4 5 8 chunks +27 lines, -62 lines 0 comments Download
M ppapi/thunk/ppb_graphics_3d_api.h View 1 chunk +2 lines, -3 lines 0 comments Download
M ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc View 1 2 3 4 2 chunks +5 lines, -7 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_graphics_3d_impl.h View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppb_graphics_3d_impl.cc View 1 2 3 4 2 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
greggman
Hey Piman, Ken, Al, Nicholas, John I think you 5 cover all the areas I ...
9 years, 1 month ago (2011-11-19 00:40:31 UTC) #1
greggman
PS: I get this message from git cl upload Missing matching PPAPI definition: *************** ppapi/api/dev/ppb_context_3d_trusted_dev.idl ...
9 years, 1 month ago (2011-11-19 00:51:44 UTC) #2
jam
can you please specify which reviewers should look at which files? the files in content ...
9 years, 1 month ago (2011-11-19 01:16:29 UTC) #3
greggman
Sorry John, I don't think you need to review anything. My bad. piman: webkit/plugins, ppapi ...
9 years, 1 month ago (2011-11-19 01:35:11 UTC) #4
piman
+ddorwin/alokp about Context3D: what do you feel about ripping it out? http://codereview.chromium.org/8566059/diff/8001/ppapi/c/trusted/ppb_graphics_3d_trusted.h File ppapi/c/trusted/ppb_graphics_3d_trusted.h (right): ...
9 years, 1 month ago (2011-11-20 01:19:15 UTC) #5
ddorwin
We are no longer using the old Context and Surface interfaces, so we are fine ...
9 years, 1 month ago (2011-11-21 16:36:43 UTC) #6
alokp
On 2011/11/21 16:36:43, ddorwin wrote: > We are no longer using the old Context and ...
9 years, 1 month ago (2011-11-21 16:41:42 UTC) #7
Ken Russell (switch to Gerrit)
LGTM overall. Couple of minor comments. http://codereview.chromium.org/8566059/diff/8001/gpu/command_buffer/client/gles2_implementation_unittest.cc File gpu/command_buffer/client/gles2_implementation_unittest.cc (right): http://codereview.chromium.org/8566059/diff/8001/gpu/command_buffer/client/gles2_implementation_unittest.cc#newcode123 gpu/command_buffer/client/gles2_implementation_unittest.cc:123: Buffer transfer_buffer_buffers_[10]; Could ...
9 years, 1 month ago (2011-11-21 18:04:10 UTC) #8
nfullagar
I'll send a link to another test to try. Otherwise lgtm. To address Alok's question, ...
9 years, 1 month ago (2011-11-21 19:23:24 UTC) #9
apatrick_chromium
lgtm
9 years, 1 month ago (2011-11-22 00:27:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gman@chromium.org/8566059/18001
9 years ago (2011-11-28 23:32:36 UTC) #11
commit-bot: I haz the power
Presubmit check for 8566059-18001 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-11-28 23:33:06 UTC) #12
piman
On 2011/11/20 01:19:15, piman wrote: > +ddorwin/alokp about Context3D: what do you feel about ripping ...
9 years ago (2011-11-28 23:51:19 UTC) #13
greggman
On 2011/11/28 23:51:19, piman wrote: > On 2011/11/20 01:19:15, piman wrote: > > +ddorwin/alokp about ...
9 years ago (2011-11-29 00:03:16 UTC) #14
greggman
On 2011/11/29 00:03:16, greggman wrote: > On 2011/11/28 23:51:19, piman wrote: > > On 2011/11/20 ...
9 years ago (2011-11-29 18:37:57 UTC) #15
greggman
Hey Piman, Can need your approval when you get a chance. Thanks
9 years ago (2011-12-02 19:17:11 UTC) #16
piman
9 years ago (2011-12-02 20:32:11 UTC) #17
lgtm

Powered by Google App Engine
This is Rietveld 408576698