Add a delay to Animator::BeginFrame's NotifyIdle call (#5972)
This change adds a delay before Animator::BeginFrame calls its delegate's OnAnimatorNotifyIdle. This is because under certain workloads, such as our parent view resizing us, which is communicated via viewport change events, we won't have a frame scheduled yet in the animator, despite the fact that we will go on to schedule a frame once the viewport event arrives. In Fuchsia's resizing performance test, on our reference high end x86-64 hardware, the previous logic was resulting in a ~45ms garbage collection right after the first frame of an animation.
Showing
想要评论请 注册 或 登录