Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pending pipelines to Frame instantly #12928

Closed
wants to merge 7 commits into from

add assertion before sending frame tree to compositor

  • Loading branch information
cbrewster committed Sep 5, 2016
commit ee259ccdaa0dcd9955f0bb183321fd2d08e2549a
@@ -1618,7 +1618,6 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
let result = match self.pipelines.get(&pipeline_id) {
None => return self.compositor_proxy.send(ToCompositorMsg::ChangePageTitle(pipeline_id, None)),
Some(pipeline) => {
assert!(!pipeline.is_pending);
if !pipeline.is_pending {
pipeline.script_chan.send(ConstellationControlMsg::GetTitle(pipeline_id))
} else {
@@ -2362,7 +2361,10 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
}

for frame in self.current_frame_tree_iter(self.root_frame_id) {
self.pipelines.get(&frame.current.pipeline_id).map(|pipeline| pipeline.grant_paint_permission());
self.pipelines.get(&frame.current.pipeline_id).map(|pipeline| {
assert!(!pipeline.is_pending);
pipeline.grant_paint_permission()
});
}
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.