mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
libservo: Don't bounce ready-to-present frame notifications to the Constellation (#35369)
Instead of telling the Constellation to tell the embedder that new frames are ready, have the compositor tell the embedder directly. This should reduce frame latency. Now, after processing compositor updates, run any pending `WebView::new_frame_ready` delegate methods. This change also removes the `refresh` call from the Java interface as that was the only other place that the compositor was rendering the WebRender scene outside of event looping spinning. This `refresh` call was completely unused. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
8c46749740
commit
71bfd2d13f
11 changed files with 26 additions and 63 deletions
|
@ -401,13 +401,6 @@ impl RunningAppState {
|
|||
self.perform_updates();
|
||||
}
|
||||
|
||||
/// Redraw the page.
|
||||
pub fn refresh(&self) {
|
||||
info!("refresh");
|
||||
self.active_webview().composite();
|
||||
self.perform_updates();
|
||||
}
|
||||
|
||||
/// Stop loading the page.
|
||||
pub fn stop(&self) {
|
||||
warn!("TODO can't stop won't stop");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue