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

Issue 2129003002: Refactored gamepad polling to support dynamic sources (Closed)

Created:
4 years, 5 months ago by bajones
Modified:
4 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactored gamepad polling to support dynamic sources Second attempt at landing. (See https://codereview.chromium.org/1586663006/) Most gamepad code has been relocated to device/ since the original CL. Reduces duplicate code between platform data fetchers by having things like sanitation happen in the provider, and makes the data fetchers themselves more modular. Data fetcher types can now be added and removed via the GamepadDataFetcherManager. BUG=577414 Committed: https://crrev.com/667f05771b5c1275f87599076d222c0ed21ba22b Cr-Commit-Position: refs/heads/master@{#411375}

Patch Set 1 #

Patch Set 2 : Fixed merge conflict #

Patch Set 3 : Fixed linux, refactored Factory declaration. #

Patch Set 4 : Fixed gyp build, mac namespace issue #

Patch Set 5 : Fixed unit test issue and Mac XBoxDataFetcher constructor #

Total comments: 2

Patch Set 6 : Rebase #

Patch Set 7 : Rebased on exo changes #

Patch Set 8 : Fixed compile issues on Linux #

Patch Set 9 : Fixed unittests #

Patch Set 10 : Fixed more exo stuff #

Patch Set 11 : Fix include issue #

Patch Set 12 : Actually fix include #

Patch Set 13 : Another attempt to fix the exo unittest #

Patch Set 14 : I really need to start testing this on ChromeOS #

Patch Set 15 : I'm an idiot. #

Patch Set 16 : Should fix remaining failing unit test #

Patch Set 17 : *sigh* #

Patch Set 18 : Missing namespace #

Patch Set 19 : This is getting silly. #

Total comments: 4

Patch Set 20 : Added requested comments #

Patch Set 21 : Disabled sanitization test on Android. Suffers from same bug as PollingAccess test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1043 lines, -1565 lines) Patch
M components/exo/gamepad.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +32 lines, -5 lines 0 comments Download
M content/browser/gamepad/gamepad_service.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/gamepad/gamepad_service.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/gamepad/gamepad_service_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M device/gamepad/BUILD.gn View 1 2 3 4 5 6 3 chunks +5 lines, -2 lines 0 comments Download
M device/gamepad/gamepad.gyp View 1 2 3 2 chunks +3 lines, -9 lines 0 comments Download
M device/gamepad/gamepad_data_fetcher.h View 1 2 3 4 5 6 1 chunk +45 lines, -36 lines 0 comments Download
M device/gamepad/gamepad_data_fetcher.cc View 1 2 3 4 5 6 1 chunk +7 lines, -74 lines 0 comments Download
A device/gamepad/gamepad_data_fetcher_manager.h View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
A device/gamepad/gamepad_data_fetcher_manager.cc View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
A device/gamepad/gamepad_pad_state_provider.h View 1 2 3 4 5 6 7 1 chunk +97 lines, -0 lines 0 comments Download
A + device/gamepad/gamepad_pad_state_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +56 lines, -17 lines 0 comments Download
M device/gamepad/gamepad_platform_data_fetcher.h View 1 chunk +13 lines, -18 lines 0 comments Download
D device/gamepad/gamepad_platform_data_fetcher.cc View 1 chunk +0 lines, -18 lines 0 comments Download
M device/gamepad/gamepad_platform_data_fetcher_android.h View 1 2 1 chunk +9 lines, -2 lines 0 comments Download
M device/gamepad/gamepad_platform_data_fetcher_android.cc View 1 2 3 chunks +41 lines, -38 lines 0 comments Download
M device/gamepad/gamepad_platform_data_fetcher_linux.h View 1 2 3 4 5 1 chunk +9 lines, -2 lines 0 comments Download
M device/gamepad/gamepad_platform_data_fetcher_linux.cc View 1 2 8 chunks +31 lines, -26 lines 0 comments Download
M device/gamepad/gamepad_platform_data_fetcher_mac.h View 1 2 3 chunks +19 lines, -31 lines 0 comments Download
M device/gamepad/gamepad_platform_data_fetcher_mac.mm View 1 2 17 chunks +60 lines, -162 lines 0 comments Download
M device/gamepad/gamepad_platform_data_fetcher_win.h View 1 2 3 chunks +11 lines, -30 lines 0 comments Download
M device/gamepad/gamepad_platform_data_fetcher_win.cc View 1 2 6 chunks +53 lines, -176 lines 0 comments Download
M device/gamepad/gamepad_provider.h View 1 2 3 4 5 6 7 6 chunks +20 lines, -28 lines 0 comments Download
M device/gamepad/gamepad_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +74 lines, -67 lines 0 comments Download
M device/gamepad/gamepad_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +84 lines, -0 lines 0 comments Download
M device/gamepad/gamepad_test_helpers.h View 1 chunk +3 lines, -2 lines 0 comments Download
M device/gamepad/gamepad_test_helpers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +13 lines, -3 lines 0 comments Download
M device/gamepad/raw_input_data_fetcher_win.h View 1 2 3 chunks +21 lines, -8 lines 0 comments Download
M device/gamepad/raw_input_data_fetcher_win.cc View 1 2 9 chunks +112 lines, -27 lines 0 comments Download
M device/gamepad/xbox_data_fetcher_mac.h View 1 2 6 chunks +22 lines, -14 lines 0 comments Download
D device/gamepad/xbox_data_fetcher_mac.cc View 1 chunk +0 lines, -765 lines 0 comments Download
A + device/gamepad/xbox_data_fetcher_mac.mm View 1 2 3 4 6 chunks +86 lines, -5 lines 0 comments Download

Messages

Total messages: 64 (41 generated)
bajones
scottmg@: I know you're OOO at the moment, but I'm not sure who else would ...
4 years, 5 months ago (2016-07-07 22:29:20 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2129003002/1
4 years, 5 months ago (2016-07-07 22:30:14 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/32467) ios-device-gn on ...
4 years, 5 months ago (2016-07-07 22:33:03 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2129003002/20001
4 years, 5 months ago (2016-07-07 22:46:38 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/93076) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years, 5 months ago (2016-07-07 23:02:41 UTC) #10
bajones
Okay, several dry-run passes later and the patch appears to work correctly cross platform. :)
4 years, 5 months ago (2016-07-08 22:39:00 UTC) #23
bajones
denniskempin@: Since scottmg is going to be out for a while and you've been digging ...
4 years, 5 months ago (2016-07-11 17:51:06 UTC) #25
denniskempin
lgtm. However I don't know much about the osx/windows side. And I also don't know ...
4 years, 5 months ago (2016-07-11 22:44:50 UTC) #27
denniskempin
On 2016/07/11 22:44:50, denniskempin wrote: > lgtm. However I don't know much about the osx/windows ...
4 years, 5 months ago (2016-07-11 22:47:37 UTC) #28
bajones
On 2016/07/11 22:44:50, denniskempin wrote: > lgtm. However I don't know much about the osx/windows ...
4 years, 5 months ago (2016-07-11 23:02:52 UTC) #29
denniskempin
On 2016/07/11 23:02:52, bajones wrote: > On 2016/07/11 22:44:50, denniskempin wrote: > > lgtm. However ...
4 years, 5 months ago (2016-07-11 23:49:23 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2129003002/100001
4 years, 5 months ago (2016-07-14 18:54:18 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/167801) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 5 months ago (2016-07-14 19:08:25 UTC) #35
bajones
reveman@: Please review changes in component/exo/ Well, that was a fun bit of blind debugging ...
4 years, 4 months ago (2016-08-07 05:21:51 UTC) #49
bajones
This was a fun bit of blind debugging to get exo_unittests working again. :P I ...
4 years, 4 months ago (2016-08-07 05:24:13 UTC) #50
reveman
components/exo lgtm with nits https://codereview.chromium.org/2129003002/diff/360001/components/exo/gamepad.cc File components/exo/gamepad.cc (right): https://codereview.chromium.org/2129003002/diff/360001/components/exo/gamepad.cc#newcode125 components/exo/gamepad.cc:125: fetcher_->GetGamepadData(false); nit: not new to ...
4 years, 4 months ago (2016-08-07 16:45:44 UTC) #51
bajones
On 2016/08/07 16:45:44, reveman wrote: > components/exo lgtm with nits > > https://codereview.chromium.org/2129003002/diff/360001/components/exo/gamepad.cc > File ...
4 years, 4 months ago (2016-08-07 17:30:15 UTC) #52
reveman
On 2016/08/07 at 17:30:15, bajones wrote: > On 2016/08/07 16:45:44, reveman wrote: > > components/exo ...
4 years, 4 months ago (2016-08-07 19:45:08 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2129003002/380001
4 years, 4 months ago (2016-08-08 18:07:09 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/117995)
4 years, 4 months ago (2016-08-08 19:23:24 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2129003002/400001
4 years, 4 months ago (2016-08-11 16:13:45 UTC) #61
commit-bot: I haz the power
Committed patchset #21 (id:400001)
4 years, 4 months ago (2016-08-11 18:11:54 UTC) #62
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 18:14:18 UTC) #64
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/667f05771b5c1275f87599076d222c0ed21ba22b
Cr-Commit-Position: refs/heads/master@{#411375}

Powered by Google App Engine
This is Rietveld 408576698