MCPcopy
hub / github.com/ampproject/amphtml / forceSchedule_

Method forceSchedule_

src/service/vsync-impl.js:378–385  ·  view source on GitHub ↗

@private

()

Source from the content-addressed store, hash-verified

376
377 /** @private */
378 forceSchedule_() {
379 if (this.canAnimate_()) {
380 this.raf_(this.boundRunScheduledTasks_);
381 this.backupPass_.schedule();
382 } else {
383 this.invisiblePass_.schedule();
384 }
385 }
386
387 /**
388 * Runs all scheduled tasks. This is typically called in an RAF

Callers 2

onVisibilityChanged_Method · 0.95
schedule_Method · 0.95

Calls 3

canAnimate_Method · 0.95
raf_Method · 0.80
scheduleMethod · 0.45

Tested by

no test coverage detected