mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
libservo: Remove Servo::repaint_synchronously
(#35283)
This method is unused, so remove it. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
4716dca505
commit
e41b34a1bf
2 changed files with 0 additions and 23 deletions
|
@ -2388,25 +2388,6 @@ impl IOCompositor {
|
|||
self.shutdown_state != ShutdownState::FinishedShuttingDown
|
||||
}
|
||||
|
||||
/// Repaints and recomposites synchronously. You must be careful when calling this, as if a
|
||||
/// paint is not scheduled the compositor will hang forever.
|
||||
///
|
||||
/// This is used when resizing the window.
|
||||
pub fn repaint_synchronously(&mut self) {
|
||||
while self.shutdown_state != ShutdownState::ShuttingDown {
|
||||
let msg = self.port.recv_compositor_msg();
|
||||
let need_recomposite = matches!(msg, CompositorMsg::NewWebRenderFrameReady(..));
|
||||
let keep_going = self.handle_browser_message(msg);
|
||||
if need_recomposite {
|
||||
self.composite();
|
||||
break;
|
||||
}
|
||||
if !keep_going {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn pinch_zoom_level(&self) -> Scale<f32, DevicePixel, DevicePixel> {
|
||||
Scale::new(self.viewport_zoom.get())
|
||||
}
|
||||
|
|
|
@ -965,10 +965,6 @@ impl Servo {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn repaint_synchronously(&mut self) {
|
||||
self.compositor.borrow_mut().repaint_synchronously()
|
||||
}
|
||||
|
||||
pub fn pinch_zoom_level(&self) -> f32 {
|
||||
self.compositor.borrow_mut().pinch_zoom_level().get()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue