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

Issue 1586663006: Refactoring gamepad polling to support dynamically added sources (Closed)

Created:
4 years, 11 months ago by bajones
Modified:
4 years, 11 months ago
Reviewers:
scottmg
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

Refactoring gamepad polling to support dynamically added sources Also reduces duplicate code between platform data fetchers by having things like sanitation happen in the provider, and makes the data fetchers themselves more modular. BUG=577414 Committed: https://crrev.com/618039679323b6fc09e2146768f121661b0cdd41 Cr-Commit-Position: refs/heads/master@{#371083}

Patch Set 1 #

Total comments: 22

Patch Set 2 : Addressed feedback #

Patch Set 3 : Added dynamic data fetcher test #

Patch Set 4 : Trying to fix build error #

Patch Set 5 : Avoid crash on Android content_unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+892 lines, -1606 lines) Patch
M content/browser/gamepad/gamepad_data_fetcher.h View 1 1 chunk +18 lines, -37 lines 0 comments Download
M content/browser/gamepad/gamepad_data_fetcher.cc View 1 chunk +6 lines, -72 lines 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher.h View 1 chunk +18 lines, -18 lines 0 comments Download
D content/browser/gamepad/gamepad_platform_data_fetcher.cc View 1 chunk +0 lines, -19 lines 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher_android.h View 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher_android.cc View 3 chunks +40 lines, -40 lines 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher_linux.h View 2 chunks +3 lines, -7 lines 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc View 8 chunks +27 lines, -26 lines 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher_mac.h View 3 chunks +11 lines, -31 lines 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher_mac.mm View 15 chunks +59 lines, -169 lines 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher_win.h View 1 4 chunks +4 lines, -30 lines 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher_win.cc View 1 5 chunks +50 lines, -180 lines 0 comments Download
M content/browser/gamepad/gamepad_provider.h View 1 8 chunks +74 lines, -30 lines 0 comments Download
M content/browser/gamepad/gamepad_provider.cc View 1 10 chunks +148 lines, -67 lines 0 comments Download
M content/browser/gamepad/gamepad_provider_unittest.cc View 1 2 3 4 3 chunks +191 lines, -0 lines 0 comments Download
M content/browser/gamepad/gamepad_service.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/gamepad/gamepad_service_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/gamepad/gamepad_test_helpers.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/gamepad/gamepad_test_helpers.cc View 1 chunk +9 lines, -3 lines 0 comments Download
M content/browser/gamepad/raw_input_data_fetcher_win.h View 4 chunks +15 lines, -8 lines 0 comments Download
M content/browser/gamepad/raw_input_data_fetcher_win.cc View 1 9 chunks +105 lines, -27 lines 0 comments Download
M content/browser/gamepad/xbox_data_fetcher_mac.h View 1 6 chunks +16 lines, -14 lines 0 comments Download
D content/browser/gamepad/xbox_data_fetcher_mac.cc View 1 chunk +0 lines, -809 lines 0 comments Download
A + content/browser/gamepad/xbox_data_fetcher_mac.mm View 1 6 chunks +87 lines, -6 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 3 chunks +2 lines, -7 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
bajones
Apologies for the large patch, but it's not clear to me what an effective way ...
4 years, 11 months ago (2016-01-14 00:09:59 UTC) #2
scottmg
On 2016/01/14 00:09:59, bajones wrote: > Apologies for the large patch, but it's not clear ...
4 years, 11 months ago (2016-01-15 20:45:50 UTC) #3
bajones
On 2016/01/15 20:45:50, scottmg wrote: > On 2016/01/14 00:09:59, bajones wrote: > > Apologies for ...
4 years, 11 months ago (2016-01-15 21:15:09 UTC) #4
scottmg
Mostly just nits. I'll try and do another pass, but I think it generally looks ...
4 years, 11 months ago (2016-01-18 22:54:52 UTC) #5
bajones
I've added a test for dynamic data fetcher addition (removal isn't supported just yet). I'll ...
4 years, 11 months ago (2016-01-20 22:49:32 UTC) #6
scottmg
I was a little confused by the INACTIVE/ACTIVE/NEWLY_ACTIVE state, but I think it looks fine. ...
4 years, 11 months ago (2016-01-21 19:31:48 UTC) #7
bajones
On 2016/01/21 19:31:48, scottmg wrote: > I wish we had some automated testing with robots ...
4 years, 11 months ago (2016-01-21 21:11:21 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1586663006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1586663006/40001
4 years, 11 months ago (2016-01-21 21:11:43 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/11230) linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, ...
4 years, 11 months ago (2016-01-21 21:28:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1586663006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1586663006/60001
4 years, 11 months ago (2016-01-21 23:49:58 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/12041)
4 years, 11 months ago (2016-01-22 02:28:20 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1586663006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1586663006/80001
4 years, 11 months ago (2016-01-22 22:22:30 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago (2016-01-22 23:40:07 UTC) #21
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/618039679323b6fc09e2146768f121661b0cdd41 Cr-Commit-Position: refs/heads/master@{#371083}
4 years, 11 months ago (2016-01-22 23:41:58 UTC) #23
bajones
4 years, 11 months ago (2016-01-23 06:37:47 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/1627643002/ by bajones@chromium.org.

The reason for reverting is: Some MSan bots started failing
PepperGamepadHostTest.WaitForReply after landing this, I'm going to have to
assume that it's related and look at it later next week.

https://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20ChromeOS%20...
https://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20MSan%20Test....

Powered by Google App Engine
This is Rietveld 408576698