提交 f84c308f 编写于 作者: C Chinmay Garde 提交者: GitHub

If the vsync provider is being replaced, make sure the animator expects no...

If the vsync provider is being replaced, make sure the animator expects no more signals from the old registration. (#2954)
上级 e9121df3
......@@ -106,6 +106,10 @@ void Animator::RequestFrame() {
void Animator::set_vsync_provider(vsync::VSyncProviderPtr vsync_provider) {
vsync_provider_ = vsync_provider.Pass();
// We may be waiting on a VSync signal from the old VSync provider.
pending_frame_semaphore_.Signal();
RequestFrame();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册