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

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

Issue 148353002: Add support of Pause/Resume for polling thread Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 | « no previous file | public/platform/Platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/NavigatorGamepad.cpp
diff --git a/Source/modules/gamepad/NavigatorGamepad.cpp b/Source/modules/gamepad/NavigatorGamepad.cpp
index f677c55d80edb8eee6d5a2db40e1eb2cf730b1fd..da673b646a5e1ba1ae19c48255b51b6896e334da 100644
--- a/Source/modules/gamepad/NavigatorGamepad.cpp
+++ b/Source/modules/gamepad/NavigatorGamepad.cpp
@@ -59,10 +59,12 @@ static void sampleGamepads(GamepadList* into)
NavigatorGamepad::NavigatorGamepad()
{
+ blink::Platform::current()->resumeGamepads();
}
NavigatorGamepad::~NavigatorGamepad()
{
+ blink::Platform::current()->pauseGamepads();
scottmg 2014/02/06 20:46:23 I don't think the renderer should be telling the b
}
const char* NavigatorGamepad::supplementName()
« no previous file with comments | « no previous file | public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698