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

Issue 8689011: Renderer reading side of gamepad (Closed)

Created:
9 years, 1 month ago by scottmg
Modified:
9 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, dpranke-watch+content_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Renderer reading side of gamepad The is the glue code that reads from the shared memory buffer on the renderer side. The writer is a background thread the browser. The data here is returned back up into WebKit code via the Chromium port. The writer on the browser side was in this patch: http://codereview.chromium.org/8568029/ And the rest of the related gamepad changes are here: http://codereview.chromium.org/8345027/ BUG=79050 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112345

Patch Set 1 #

Patch Set 2 : move out of glue namespace #

Patch Set 3 : remove unrelated change #

Total comments: 12

Patch Set 4 : mechanical bits of review #

Patch Set 5 : using separate seqlock #

Total comments: 2

Patch Set 6 : fix typo in comment #

Patch Set 7 : add ref to CK #

Patch Set 8 : add seqlock_unittest #

Patch Set 9 : fix shared_library build #

Patch Set 10 : unbreak after refactor #

Patch Set 11 : simplify gamepad provider unittest #

Patch Set 12 : add header to gypi #

Patch Set 13 : remove unnecessary acquire on begin, inc num threads in unittest #

Patch Set 14 : move seqlock to gamepad-specific, improve description #

Total comments: 8

Patch Set 15 : review fixes, some renaming #

Total comments: 6

Patch Set 16 : review (and win) fixes\ #

Patch Set 17 : rebase to HEAD #

Unified diffs Side-by-side diffs Delta from patch set Stats (+426 lines, -116 lines) Patch
M content/browser/gamepad/data_fetcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/gamepad/data_fetcher_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/gamepad/data_fetcher_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +6 lines, -6 lines 0 comments Download
M content/browser/gamepad/gamepad_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +13 lines, -13 lines 0 comments Download
M content/browser/gamepad/gamepad_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +31 lines, -25 lines 0 comments Download
M content/browser/gamepad/gamepad_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +31 lines, -39 lines 0 comments Download
M content/browser/renderer_host/gamepad_browser_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/gamepad_browser_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M content/common/gamepad_hardware_buffer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -16 lines 0 comments Download
A content/common/gamepad_seqlock.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +45 lines, -0 lines 0 comments Download
A content/common/gamepad_seqlock.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +49 lines, -0 lines 0 comments Download
A content/common/gamepad_seqlock_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +98 lines, -0 lines 0 comments Download
M content/content_common.gypi 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 content/content_renderer.gypi 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 content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
A content/renderer/gamepad_shared_memory_reader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +32 lines, -0 lines 0 comments Download
A content/renderer/gamepad_shared_memory_reader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +84 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 chunks +11 lines, -0 lines 0 comments Download
M tools/valgrind/tsan/suppressions.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
scottmg
GamepadUtil::SampleGamepads is the fairly subtle shared memory reading contention-detection behaviour we had discussed before. LMK ...
9 years, 1 month ago (2011-11-24 23:06:20 UTC) #1
scottmg
Should have added for reference: writer to shared memory is landed in content/browser/gamepad/gamepad_provider.cc, GamepadProvider::DoPoll().
9 years, 1 month ago (2011-11-24 23:15:01 UTC) #2
darin (slow to review)
http://codereview.chromium.org/8689011/diff/5001/content/renderer/gamepad_util.cc File content/renderer/gamepad_util.cc (right): http://codereview.chromium.org/8689011/diff/5001/content/renderer/gamepad_util.cc#newcode14 content/renderer/gamepad_util.cc:14: using namespace content; nit: the google c++ style guide ...
9 years ago (2011-11-28 17:35:49 UTC) #3
scottmg
http://codereview.chromium.org/8689011/diff/5001/content/renderer/gamepad_util.cc File content/renderer/gamepad_util.cc (right): http://codereview.chromium.org/8689011/diff/5001/content/renderer/gamepad_util.cc#newcode14 content/renderer/gamepad_util.cc:14: using namespace content; On 2011/11/28 17:35:49, darin wrote: > ...
9 years ago (2011-11-28 20:02:08 UTC) #4
scottmg
> > i'm curious why you designed this to use Acquire_Load for the end and ...
9 years ago (2011-11-28 22:38:58 UTC) #5
darin (slow to review)
On Mon, Nov 28, 2011 at 2:38 PM, <scottmg@chromium.org> wrote: > > i'm curious why ...
9 years ago (2011-11-28 22:58:35 UTC) #6
jbates
http://codereview.chromium.org/8689011/diff/11004/base/synchronization/seqlock.h File base/synchronization/seqlock.h (right): http://codereview.chromium.org/8689011/diff/11004/base/synchronization/seqlock.h#newcode49 base/synchronization/seqlock.h:49: subtle::Barrier_AtomicIncrement(&sequence_, 1); I'm not sure why there's BarrierAtomicIncrement and ...
9 years ago (2011-11-29 00:05:26 UTC) #7
scottmg
On 2011/11/29 00:05:26, jbates wrote: > http://codereview.chromium.org/8689011/diff/11004/base/synchronization/seqlock.h > File base/synchronization/seqlock.h (right): > > http://codereview.chromium.org/8689011/diff/11004/base/synchronization/seqlock.h#newcode49 > ...
9 years ago (2011-11-29 00:39:58 UTC) #8
jbates
On 2011/11/29 00:39:58, scottmg wrote: > On 2011/11/29 00:05:26, jbates wrote: > > > http://codereview.chromium.org/8689011/diff/11004/base/synchronization/seqlock.h ...
9 years ago (2011-11-29 00:49:00 UTC) #9
darin (slow to review)
http://codereview.chromium.org/8689011/diff/10008/content/browser/gamepad/gamepad_provider_unittest.cc File content/browser/gamepad/gamepad_provider_unittest.cc (right): http://codereview.chromium.org/8689011/diff/10008/content/browser/gamepad/gamepad_provider_unittest.cc#newcode12 content/browser/gamepad/gamepad_provider_unittest.cc:12: nit: A 'using WebKit::WebGamepads" might be nice here. http://codereview.chromium.org/8689011/diff/10008/content/common/gamepad_seqlock.h ...
9 years ago (2011-11-30 18:34:37 UTC) #10
scottmg
http://codereview.chromium.org/8689011/diff/10008/content/browser/gamepad/gamepad_provider_unittest.cc File content/browser/gamepad/gamepad_provider_unittest.cc (right): http://codereview.chromium.org/8689011/diff/10008/content/browser/gamepad/gamepad_provider_unittest.cc#newcode12 content/browser/gamepad/gamepad_provider_unittest.cc:12: On 2011/11/30 18:34:37, darin wrote: > nit: A 'using ...
9 years ago (2011-11-30 19:43:31 UTC) #11
darin (slow to review)
LGTM http://codereview.chromium.org/8689011/diff/21004/content/browser/gamepad/data_fetcher.h File content/browser/gamepad/data_fetcher.h (right): http://codereview.chromium.org/8689011/diff/21004/content/browser/gamepad/data_fetcher.h#newcode14 content/browser/gamepad/data_fetcher.h:14: class GamepadDataFetcher { I hate to create more ...
9 years ago (2011-11-30 21:06:22 UTC) #12
scottmg
thanks for quick (re-)review. http://codereview.chromium.org/8689011/diff/21004/content/browser/gamepad/data_fetcher.h File content/browser/gamepad/data_fetcher.h (right): http://codereview.chromium.org/8689011/diff/21004/content/browser/gamepad/data_fetcher.h#newcode14 content/browser/gamepad/data_fetcher.h:14: class GamepadDataFetcher { On 2011/11/30 ...
9 years ago (2011-11-30 21:22:39 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/8689011/28001
9 years ago (2011-11-30 21:24:02 UTC) #14
commit-bot: I haz the power
Can't apply patch for file content/content_tests.gypi. While running patch -p1 --forward --force; patching file content/content_tests.gypi ...
9 years ago (2011-11-30 21:24:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/8689011/30003
9 years ago (2011-11-30 22:11:27 UTC) #16
commit-bot: I haz the power
9 years ago (2011-12-01 00:01:40 UTC) #17
Change committed as 112345

Powered by Google App Engine
This is Rietveld 408576698