Bug 1175751 - Apply playback rate to compositor animations. r=bbirtles

This commit is contained in:
Hiroyuki Ikezoe
2015-07-06 19:05:00 +02:00
parent 153895959a
commit 69ab73575e
6 changed files with 89 additions and 1 deletions

View File

@@ -441,7 +441,8 @@ SampleAnimations(Layer* aLayer, TimeStamp aPoint)
MOZ_ASSERT(!animation.startTime().IsNull(),
"Failed to resolve start time of pending animations");
TimeDuration elapsedDuration = aPoint - animation.startTime();
TimeDuration elapsedDuration =
(aPoint - animation.startTime()).MultDouble(animation.playbackRate());
// Skip animations that are yet to start.
//
// Currently, this should only happen when the refresh driver is under test