(thisFrameCbs: AnimationFrameCallbacks, frameTime: number)
| 30 | } |
| 31 | |
| 32 | function callAnimationCallbacks(thisFrameCbs: AnimationFrameCallbacks, frameTime: number): void { |
| 33 | inAnimationFrame = true; |
| 34 | for (const animationId in thisFrameCbs) { |
| 35 | if (thisFrameCbs[animationId]) { |
| 36 | try { |
| 37 | thisFrameCbs[animationId](frameTime); |
| 38 | } catch (err) { |
| 39 | const msg = err ? err.stack || err : err; |
| 40 | Trace.write(`Error in requestAnimationFrame: ${msg}`, Trace.categories.Error, Trace.messageType.error); |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | inAnimationFrame = false; |
| 45 | } |
| 46 | |
| 47 | function doCurrentFrame() { |
| 48 | // if we're not getting accurate frame times |
no test coverage detected