Notify compositor when a FrameTree changes pipelines

When the constellation change a FrameTree pipeline, it should send a
notification to the compositor, so that it can negotiate buffers from
the correct render task. This commit also migrates away from the
generalized FrameTreeUpdateMsg to ones specific to the situation at
hand. That turned out to be an unnecessary abstraction.
This commit is contained in:
Martin Robinson 2014-11-14 10:33:50 -08:00
parent f1d82cf82c
commit 19f57008da
4 changed files with 89 additions and 39 deletions

View file

@ -90,7 +90,11 @@ impl CompositorEventListener for NullCompositor {
response_chan.send(());
}
Msg::FrameTreeUpdate(_, response_channel) => {
Msg::ChangeLayerPipelineAndRemoveChildren(_, _, response_channel) => {
response_channel.send(());
}
Msg::CreateRootLayerForPipeline(_, _, _, response_channel) => {
response_channel.send(());
}