Bug 1175751 - Apply playback rate to compositor animations. r=bbirtles
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user