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

Issue 555129: Add commands Jump, Call and Return... (Closed)

Created:
10 years, 11 months ago by greggman
Modified:
9 years, 7 months ago
CC:
chromium-reviews, apatrick_chromium, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add commands Jump, Call and Return This is the minimal change version. There were 3 possible solution: #1) Remove these commands #2) Change the command buffers so the client side can not see the "get" pointer and therefore force the client side to use tokens to say in sync. It's the cleaner solution. It lets you put commands in any shared memory thereby getting rid of the ring buffer commands. But, it required major changes. After going down that path for an entire day I punted for... #3) Implement the commands assuming there is only one buffer the commands can be in (what is currently called the ring_buffer). With the jump commands available it no longer has to be used as a ring buffer. A Pepper or NaCl app can use it however they want but, unlike solution #2 they only get the one buffer. TEST=none BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=37446

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 5

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -112 lines) Patch
M gpu/command_buffer/client/cmd_buffer_helper.h View 1 chunk +0 lines, -43 lines 0 comments Download
M gpu/command_buffer/client/cmd_buffer_helper.cc View 1 2 chunks +9 lines, -13 lines 0 comments Download
M gpu/command_buffer/client/cmd_buffer_helper_test.cc View 2 chunks +12 lines, -3 lines 0 comments Download
M gpu/command_buffer/common/cmd_buffer_common.h View 4 chunks +22 lines, -30 lines 0 comments Download
M gpu/command_buffer/service/cmd_buffer_engine.h View 1 chunk +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/cmd_parser.h View 2 chunks +11 lines, -1 line 0 comments Download
M gpu/command_buffer/service/cmd_parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/common_decoder.h View 1 2 3 3 chunks +16 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/common_decoder.cc View 1 2 3 2 chunks +31 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/common_decoder_unittest.cc View 1 2 3 6 chunks +131 lines, -16 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gpu_processor.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gpu_processor.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
greggman
http://codereview.chromium.org/555129/diff/1/3 File gpu/command_buffer/service/cmd_buffer_engine.h (right): http://codereview.chromium.org/555129/diff/1/3#newcode16 gpu/command_buffer/service/cmd_buffer_engine.h:16: class CommandBufferEngine { I really don't quite understand the ...
10 years, 11 months ago (2010-01-27 08:46:53 UTC) #1
apatrick_chromium
http://codereview.chromium.org/555129/diff/19/1023 File gpu/command_buffer/service/common_decoder_unittest.cc (right): http://codereview.chromium.org/555129/diff/19/1023#newcode237 gpu/command_buffer/service/common_decoder_unittest.cc:237: cmd.Init(MockCommandBufferEngine::kValidOffset); Should we enforce a max stack depth? I ...
10 years, 11 months ago (2010-01-27 19:20:56 UTC) #2
apatrick_chromium
http://codereview.chromium.org/555129/diff/19/1031 File gpu/command_buffer/service/gpu_processor.cc (right): http://codereview.chromium.org/555129/diff/19/1031#newcode84 gpu/command_buffer/service/gpu_processor.cc:84: return parser_->set_get(offset); This is kind of gross but I ...
10 years, 11 months ago (2010-01-27 19:38:45 UTC) #3
greggman
http://codereview.chromium.org/555129/diff/19/1023 File gpu/command_buffer/service/common_decoder_unittest.cc (right): http://codereview.chromium.org/555129/diff/19/1023#newcode237 gpu/command_buffer/service/common_decoder_unittest.cc:237: cmd.Init(MockCommandBufferEngine::kValidOffset); On 2010/01/27 19:20:57, apatrick_chromium wrote: > Should we ...
10 years, 11 months ago (2010-01-28 10:15:33 UTC) #4
apatrick
10 years, 11 months ago (2010-01-28 19:14:05 UTC) #5
lgtm

Powered by Google App Engine
This is Rietveld 408576698