Bug 1109390 part 9 - Call Trigger* on pause-pending players; r=jwatt

This won't actually do anything yet because:
(a) We don't yet add pause-pending players to the PendingPlayerTracker
(b) We never mark pausing players as pending so
    AnimationPlayer::TriggerOnNextTick will just ignore them.
This commit is contained in:
Brian Birtles 2015-03-27 15:56:45 +09:00
parent 7e48f4d74f
commit 419faab492

View File

@ -76,6 +76,8 @@ PendingPlayerTracker::TriggerPendingPlayersOnNextTick(const TimeStamp&
{
mPlayPendingSet.EnumerateEntries(TriggerPlayerAtTime,
const_cast<TimeStamp*>(&aReadyTime));
mPausePendingSet.EnumerateEntries(TriggerPlayerAtTime,
const_cast<TimeStamp*>(&aReadyTime));
}
PLDHashOperator
@ -90,6 +92,8 @@ PendingPlayerTracker::TriggerPendingPlayersNow()
{
mPlayPendingSet.EnumerateEntries(TriggerPlayerNow, nullptr);
mPlayPendingSet.Clear();
mPausePendingSet.EnumerateEntries(TriggerPlayerNow, nullptr);
mPausePendingSet.Clear();
}
void