Bug 847287 patch 10 - Only call CheckNeedsRefresh if we might have changed mNeedsRefreshes, to make it cheaper to call EnsureStyleRuleFor more than once per refresh cycle. r=birtles
This saves some extra work that we don't need to do. I want to do this here since patch 9 introduces a new call to EnsureStyleRuleFor.
This commit is contained in:
@@ -825,10 +825,10 @@ AnimationPlayerCollection::EnsureStyleRuleFor(TimeStamp aRefreshTime,
|
|||||||
mPlayers[playerIdx]->ComposeStyle(mStyleRule, properties,
|
mPlayers[playerIdx]->ComposeStyle(mStyleRule, properties,
|
||||||
mNeedsRefreshes);
|
mNeedsRefreshes);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
mManager->CheckNeedsRefresh();
|
mManager->CheckNeedsRefresh();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
AnimationPlayerCollection::CanThrottleTransformChanges(TimeStamp aTime)
|
AnimationPlayerCollection::CanThrottleTransformChanges(TimeStamp aTime)
|
||||||
|
|||||||
Reference in New Issue
Block a user