зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1149848 - Stop calling NotifyAnimated (and thus repeatedly cycling layer activity) when sending OMT animations to the compositor. r=birtles
I checked in gdb that with the patch, we're no longer calling PresShell::Paint repeatedly on the testcase (whereas we are without the patch).
This commit is contained in:
Родитель
eef8e4b904
Коммит
b0193d991a
|
@ -158,18 +158,6 @@ CommonAnimationManager::GetAnimationsForCompositor(nsIContent* aContent,
|
|||
}
|
||||
|
||||
// This animation can be done on the compositor.
|
||||
// Mark the frame as active, in case we are able to throttle this animation.
|
||||
nsIFrame* frame = nsLayoutUtils::GetStyleFrame(collection->mElement);
|
||||
if (frame) {
|
||||
const auto& info = sLayerAnimationInfo;
|
||||
for (size_t i = 0; i < ArrayLength(info); i++) {
|
||||
if (aProperty == info[i].mProperty) {
|
||||
ActiveLayerTracker::NotifyAnimated(frame, aProperty);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return collection;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче