diff options
Diffstat (limited to 'components/compositing/pipeline.rs')
-rw-r--r-- | components/compositing/pipeline.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/components/compositing/pipeline.rs b/components/compositing/pipeline.rs index 9bb29db622f..27ee5eba150 100644 --- a/components/compositing/pipeline.rs +++ b/components/compositing/pipeline.rs @@ -191,6 +191,16 @@ impl Pipeline { } + pub fn freeze(&self) { + let ScriptControlChan(ref script_channel) = self.script_chan; + let _ = script_channel.send(ConstellationControlMsg::Freeze(self.id)).unwrap(); + } + + pub fn thaw(&self) { + let ScriptControlChan(ref script_channel) = self.script_chan; + let _ = script_channel.send(ConstellationControlMsg::Thaw(self.id)).unwrap(); + } + pub fn force_exit(&self) { let ScriptControlChan(ref script_channel) = self.script_chan; let _ = script_channel.send( |