mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
f1d82cf82c
commit
19f57008da
4 changed files with 89 additions and 39 deletions
|
@ -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(());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue