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

Unified Diff: Source/modules/gamepad/GamepadDispatcher.cpp

Issue 619383002: Move PlatformEventDispatcher implementations to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix non-Oilpan allocation of DeviceLightDispatcher singleton Created 6 years, 2 months 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 | « Source/modules/gamepad/GamepadDispatcher.h ('k') | Source/modules/gamepad/NavigatorGamepad.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/GamepadDispatcher.cpp
diff --git a/Source/modules/gamepad/GamepadDispatcher.cpp b/Source/modules/gamepad/GamepadDispatcher.cpp
index 8a626789dc6e6a536a468060245a8e9e6a4f311d..9be3ac58f326e6d73f77b284438187ecdaa3ea5e 100644
--- a/Source/modules/gamepad/GamepadDispatcher.cpp
+++ b/Source/modules/gamepad/GamepadDispatcher.cpp
@@ -13,8 +13,8 @@ namespace blink {
GamepadDispatcher& GamepadDispatcher::instance()
{
- DEFINE_STATIC_LOCAL(GamepadDispatcher, gamepadDispatcher, ());
- return gamepadDispatcher;
+ DEFINE_STATIC_LOCAL(Persistent<GamepadDispatcher>, gamepadDispatcher, (new GamepadDispatcher()));
+ return *gamepadDispatcher;
}
void GamepadDispatcher::sampleGamepads(WebGamepads& gamepads)
@@ -30,6 +30,11 @@ GamepadDispatcher::~GamepadDispatcher()
{
}
+void GamepadDispatcher::trace(Visitor* visitor)
+{
+ PlatformEventDispatcher::trace(visitor);
+}
+
void GamepadDispatcher::didConnectGamepad(unsigned index, const WebGamepad& gamepad)
{
dispatchDidConnectOrDisconnectGamepad(index, gamepad, true);
« no previous file with comments | « Source/modules/gamepad/GamepadDispatcher.h ('k') | Source/modules/gamepad/NavigatorGamepad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698