diff options
Diffstat (limited to 'src/window')
| -rw-r--r-- | src/window/mapped.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/window/mapped.rs b/src/window/mapped.rs index 9686a15f..90598431 100644 --- a/src/window/mapped.rs +++ b/src/window/mapped.rs @@ -47,9 +47,6 @@ pub struct Mapped { /// Buffer to draw instead of the window when it should be blocked out. block_out_buffer: RefCell<SolidColorBuffer>, - /// Snapshot of the last render for use in the close animation. - unmap_snapshot: RefCell<Option<LayoutElementRenderSnapshot>>, - /// Whether the next configure should be animated, if the configured state changed. animate_next_configure: bool, @@ -69,7 +66,6 @@ impl Mapped { need_to_recompute_rules: false, is_focused: false, block_out_buffer: RefCell::new(SolidColorBuffer::new((0, 0), [0., 0., 0., 1.])), - unmap_snapshot: RefCell::new(None), animate_next_configure: false, animate_serials: Vec::new(), animation_snapshot: None, @@ -156,15 +152,6 @@ impl Mapped { } } - pub fn store_unmap_snapshot_if_empty(&self, renderer: &mut GlesRenderer) { - let mut snapshot = self.unmap_snapshot.borrow_mut(); - if snapshot.is_some() { - return; - } - - *snapshot = Some(self.render_snapshot(renderer)); - } - pub fn should_animate_commit(&mut self, commit_serial: Serial) -> bool { let mut should_animate = false; self.animate_serials.retain_mut(|serial| { @@ -380,10 +367,6 @@ impl LayoutElement for Mapped { &self.rules } - fn take_unmap_snapshot(&self) -> Option<LayoutElementRenderSnapshot> { - self.unmap_snapshot.take() - } - fn animation_snapshot(&self) -> Option<&LayoutElementRenderSnapshot> { self.animation_snapshot.as_ref() } |
