Commit Graph
3 Commits
Author SHA1 Message Date
Kartikaya Gupta 92ec9112a3 Bug 1402439 - Redo how we discard compositor animation ids. r=pchang
Instead of always discarding the compositor animation id, and then
sometimes un-discarding it (which involves a linear lookup in nsTArray),
this patch now has the WebRenderLayerManager keep a set of active
animation ids, and uses that to avoid discarding the same animation
twice.

In addition, because the display item can be destroyed at any time (e.g.
in the middle of an animation), we were previously "leaking" compositor
animations in that the compositor side never got notified to discard the
IDs. This resulted in infinite composition loops. This patch solves this
problem by having any unused WebRenderAnimationData trigger discard of
the animation id during destruction. This way, even if the nsDisplayItem
is deleted in the middle of the animation we have a fallback mechanism
to discard the id.

MozReview-Commit-ID: 8G3EYHcg9Kl
2017-09-22 16:39:57 -04:00
peter chang ff62ace7ce Bug 1396471 - Keep the running compositorAnimationsId alive on the compositor, r=kats
If the compositor animations are still valid, we don't need to add its id to the discarded list.
This patch also reduces unnecessary SendDeleteCompositorAnimations calls.

MozReview-Commit-ID: AcbVUk3MUo7
2017-09-21 16:18:03 +08:00
Ethan Lin bb03921d18 Bug 1378602 - Part2. Move animation data from layer to AnimationInfo. r=kats
MozReview-Commit-ID: 4gv8EfPgsii
2017-07-21 14:21:47 +08:00