[Webkit-unassigned] [Bug 134675] WK2 support for gamepads

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 6 22:13:39 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=134675





--- Comment #1 from Brady Eidson <beidson at apple.com>  2014-07-06 22:13:54 PST ---
Additional design details, just for the record:

- WebCore already has "GamepadProvider", and allows for a platform-specific subclass.  e.g. the HIDGamepadProvider on Mac.
- That platform specific provider works great in WK1, but doesn't work in WK2 for all the reasons mentioned above.
- In WK2, the UIProcess will have a GamepadProviderClient called "WebGamepadProvider" which hooks directly in to the platform provider.  e.g., on Mac, WebGamepadProvider will be a client of the HIDGamepadProvider.
- That WebGamepadProvider will track the individual PlatformGamepads (e.g. HIDGamepads) by mapping them to UIProcess-side "WebGamepad" objects.
- Then the WebProcess will have a generic "WebGamepadProviderProxy" - the same on all platforms - which messages back and forth to the WebGamepadProvider for most of its needs.
- The WebGamepadProviderProxy has to vend PlatformGamepads to WebCore, and its PlatformGamepads will be "WebGamepadProxy" objects.
- The relationship between WebGamepad in the UIProcess and WebGamepadProxy in the WebProcess is that the WebGamepad dumps its gamepad state into a block of shared memory, and the WebGamepadProxy reads state out of that block of shared memory.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list