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

Unified Diff: content/renderer/gamepad_shared_memory_reader.h

Issue 2563483006: Move gamepad_service out of content/ and into device/ (Closed)
Patch Set: addressed Blundell's review comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gamepad_hardware_buffer.h ('k') | content/renderer/gamepad_shared_memory_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gamepad_shared_memory_reader.h
diff --git a/content/renderer/gamepad_shared_memory_reader.h b/content/renderer/gamepad_shared_memory_reader.h
index 2eef9d226892cf842fbddc8d232adba11e308beb..af4530f36ec1a48efb3c935dd0271fbd7aec53d4 100644
--- a/content/renderer/gamepad_shared_memory_reader.h
+++ b/content/renderer/gamepad_shared_memory_reader.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/shared_memory.h"
#include "content/public/renderer/renderer_gamepad_provider.h"
+#include "device/base/synchronization/shared_memory_seqlock_buffer.h"
#include "device/gamepad/public/interfaces/gamepad.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "mojo/public/cpp/system/platform_handle.h"
@@ -17,7 +18,8 @@
namespace content {
-struct GamepadHardwareBuffer;
+typedef device::SharedMemorySeqLockBuffer<blink::WebGamepads>
+ GamepadHardwareBuffer;
class GamepadSharedMemoryReader : public RendererGamepadProvider,
public device::mojom::GamepadObserver {
« no previous file with comments | « content/common/gamepad_hardware_buffer.h ('k') | content/renderer/gamepad_shared_memory_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698