* Creates an instance of AnimationLoop. * @param {!Function} task
(task)
| 4 | * @param {!Function} task |
| 5 | */ |
| 6 | constructor(task) { |
| 7 | /** @private */ |
| 8 | this.task_ = task; |
| 9 | |
| 10 | /** @private {boolean} */ |
| 11 | this.isRunning_ = false; |
| 12 | |
| 13 | /** @private {number} */ |
| 14 | this.currentRAF_ = 0; |
| 15 | |
| 16 | /** @public {boolean} */ |
| 17 | this.needsUpdate = true; |
| 18 | |
| 19 | /** @private */ |
| 20 | this.loop_ = this.loop_.bind(this); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Runs the task |
nothing calls this directly
no outgoing calls
no test coverage detected