Bug 757593 - Fix WebGL context restorer timer: InitWithFuncCallback's 3rd parameter is a number of milliseconds - r=bz
authorBenoit Jacob <bjacob@mozilla.com>
Wed, 24 Oct 2012 15:46:31 -0400
changeset 111414 d400b4e402f39f661d5ce2ede318fdcb15839797
parent 111413 20c0647bdacc237ee8c8f35a96c68cbe8b8b3ec0
child 111415 b6089a8b78d3ab43a075f67a4a4baed96e68f91d
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersbz
bugs757593
milestone19.0a1
Bug 757593 - Fix WebGL context restorer timer: InitWithFuncCallback's 3rd parameter is a number of milliseconds - r=bz
content/canvas/src/WebGLContext.h
--- a/content/canvas/src/WebGLContext.h
+++ b/content/canvas/src/WebGLContext.h
@@ -617,17 +617,17 @@ public:
         // between threads.
         if (mContextLossTimerRunning) {
             mDrawSinceContextLossTimerSet = true;
             return;
         }
 
         mContextRestorer->InitWithFuncCallback(RobustnessTimerCallbackStatic,
                                                static_cast<void*>(this),
-                                               PR_MillisecondsToInterval(1000),
+                                               1000,
                                                nsITimer::TYPE_ONE_SHOT);
         mContextLossTimerRunning = true;
         mDrawSinceContextLossTimerSet = false;
     }
 
     void TerminateContextLossTimer() {
         if (mContextLossTimerRunning) {
             mContextRestorer->Cancel();