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:
Martin Robinson 2025-02-12 09:25:58 +01:00 committed by GitHub
parent 8c46749740
commit 71bfd2d13f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 26 additions and 63 deletions

View file

@ -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");