Index: content/renderer/renderer_webkitplatformsupport_impl.cc |
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc |
index b507a732a1eacb48b0ecdf3cac6f32fa3f736a22..5af0d3091e36fa5c2f590f289f32d54a758da25c 100644 |
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc |
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc |
@@ -884,7 +884,8 @@ WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { |
void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { |
if (g_test_gamepads == 0) { |
- RenderThreadImpl::current()->SampleGamepads(&gamepads); |
+ RenderThreadImpl::current()->gamepad_shared_memory_reader()-> |
+ SampleGamepads(gamepads); |
} else { |
gamepads = g_test_gamepads.Get(); |
} |
@@ -893,6 +894,8 @@ void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { |
void RendererWebKitPlatformSupportImpl::setGamepadListener( |
blink::WebGamepadListener* listener) { |
web_gamepad_listener = listener; |
+ RenderThreadImpl::current()->gamepad_shared_memory_reader()-> |
+ SetGamepadListener(listener); |
} |
//------------------------------------------------------------------------------ |