зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1216030 - Part 9: We don't need to call CanPerformOnCompositorThread in RequestRestyle.
That's because KeyFrameEffectReadOnly::mIsPropertyRunningOnCompositor indicates the correct state that the animation property is now running on compositor or not. So once the flag is set to true, we do not need to check animation properties can run on compositor after Animation::CanThrottle again.
This commit is contained in:
Родитель
6f7b96040d
Коммит
74a78cc5ad
|
@ -783,8 +783,7 @@ AnimationCollection::RequestRestyle(RestyleType aRestyleType)
|
|||
// throttling (e.g. async animations are not enabled).
|
||||
if (aRestyleType == RestyleType::Throttled) {
|
||||
TimeStamp now = presContext->RefreshDriver()->MostRecentRefresh();
|
||||
if (!CanPerformOnCompositorThread(CanAnimateFlags(0)) ||
|
||||
!CanThrottleAnimation(now)) {
|
||||
if (!CanThrottleAnimation(now)) {
|
||||
aRestyleType = RestyleType::Standard;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче