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

Issue 739493002: Introduce command buffer control thread (Closed)

Created:
6 years, 1 month ago by abarth-chromium
Modified:
6 years, 1 month ago
Reviewers:
jamesr
CC:
Aaron Boodman, ben+mojo_chromium.org, darin (slow to review), mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Introduce command buffer control thread This CL introduce a control thread for the GPU command buffer. We listen on the command buffer pipe on a control thread so that we can respond to messages with low latency. Currently, we don't have any special low-latency processing on the control thread, but the plan is to implement sync points on the control thread. Instead, we just forward all the messages to the driver thread by re-wrapping the arguments in base::Callbacks. R=jamesr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/1658f1188749714b0dc601f33702c6fb242d8256

Patch Set 1 #

Patch Set 2 : Fix initialization order #

Patch Set 3 : Forward echo too #

Total comments: 12

Patch Set 4 : Address review comments #

Total comments: 2

Patch Set 5 : Route echo better #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -61 lines) Patch
M mojo/public/cpp/bindings/binding.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/strong_binding.h View 1 2 3 4 2 chunks +23 lines, -0 lines 0 comments Download
M mojo/services/gles2/command_buffer_driver.h View 1 2 3 chunks +7 lines, -1 line 0 comments Download
M mojo/services/gles2/command_buffer_driver.cc View 1 2 2 chunks +10 lines, -2 lines 0 comments Download
M mojo/services/gles2/command_buffer_impl.h View 1 2 3 1 chunk +17 lines, -5 lines 0 comments Download
M mojo/services/gles2/command_buffer_impl.cc View 1 2 3 4 1 chunk +57 lines, -16 lines 0 comments Download
M mojo/services/gles2/gpu_impl.h View 1 2 3 3 chunks +31 lines, -8 lines 0 comments Download
M mojo/services/gles2/gpu_impl.cc View 1 2 chunks +20 lines, -12 lines 0 comments Download
M mojo/services/native_viewport/main.cc View 1 4 chunks +5 lines, -9 lines 0 comments Download
M mojo/shell/context.cc View 1 2 3 4 chunks +3 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
abarth-chromium
6 years, 1 month ago (2014-11-18 07:54:27 UTC) #1
abarth-chromium
PTAL
6 years, 1 month ago (2014-11-18 20:10:14 UTC) #2
jamesr
https://codereview.chromium.org/739493002/diff/40001/mojo/services/gles2/command_buffer_impl.cc File mojo/services/gles2/command_buffer_impl.cc (right): https://codereview.chromium.org/739493002/diff/40001/mojo/services/gles2/command_buffer_impl.cc#newcode12 mojo/services/gles2/command_buffer_impl.cc:12: void DestoryDriver(scoped_ptr<CommandBufferDriver> driver) { typo 'Destory' https://codereview.chromium.org/739493002/diff/40001/mojo/services/gles2/command_buffer_impl.cc#newcode31 mojo/services/gles2/command_buffer_impl.cc:31: base::Passed(request.Pass()))); ...
6 years, 1 month ago (2014-11-19 06:43:02 UTC) #3
abarth-chromium
Thanks! https://codereview.chromium.org/739493002/diff/40001/mojo/services/gles2/command_buffer_impl.cc File mojo/services/gles2/command_buffer_impl.cc (right): https://codereview.chromium.org/739493002/diff/40001/mojo/services/gles2/command_buffer_impl.cc#newcode31 mojo/services/gles2/command_buffer_impl.cc:31: base::Passed(request.Pass()))); On 2014/11/19 at 06:43:02, jamesr wrote: > ...
6 years, 1 month ago (2014-11-19 15:42:11 UTC) #4
abarth-chromium
PTAL https://codereview.chromium.org/739493002/diff/40001/mojo/services/gles2/command_buffer_impl.h File mojo/services/gles2/command_buffer_impl.h (right): https://codereview.chromium.org/739493002/diff/40001/mojo/services/gles2/command_buffer_impl.h#newcode17 mojo/services/gles2/command_buffer_impl.h:17: class CommandBufferImpl : public CommandBuffer { On 2014/11/19 ...
6 years, 1 month ago (2014-11-19 16:54:10 UTC) #5
jamesr
lgtm if you shimmy the echo callback back to the control thread. I can try ...
6 years, 1 month ago (2014-11-19 20:57:18 UTC) #6
abarth-chromium
6 years, 1 month ago (2014-11-20 04:09:19 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
1658f1188749714b0dc601f33702c6fb242d8256 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698