diff options
author | Delan Azabani <dazabani@igalia.com> | 2023-09-12 11:30:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-12 03:30:43 +0000 |
commit | 1bbd0c1e6eb22be6db73c4f9b28664a9104ee3f7 (patch) | |
tree | aa3f5367617455e5b378cffefaaea9b9f2bb25db /components/servo/lib.rs | |
parent | aad2dccc9c9f6b89922c07933cfa7087a8cd1ec4 (diff) | |
download | servo-1bbd0c1e6eb22be6db73c4f9b28664a9104ee3f7.tar.gz servo-1bbd0c1e6eb22be6db73c4f9b28664a9104ee3f7.zip |
servoshell: fix lockups while animating (#30322)
* servoshell: fix lockups while animating
* move comment to external_present declaration
* disable needs_recomposite optimisation for now due to breakage
* fix compile error that only happens on ci
* fix more compile errors
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r-- | components/servo/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs index baa59a06df8..e62a8e5f11b 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -62,7 +62,7 @@ use gaol::sandbox::{ChildSandbox, ChildSandboxMethods}; use gfx::font_cache_thread::FontCacheThread; pub use gleam::gl; use ipc_channel::ipc::{self, IpcSender}; -use log::{error, warn, Log, Metadata, Record}; +use log::{error, trace, warn, Log, Metadata, Record}; use media::{GLPlayerThreads, WindowGLContext}; pub use msg::constellation_msg::TopLevelBrowsingContextId as BrowserId; use msg::constellation_msg::{PipelineNamespace, PipelineNamespaceId}; @@ -717,6 +717,7 @@ where } let mut need_resize = false; for event in events { + trace!("servo <- embedder EmbedderEvent {:?}", event); need_resize |= self.handle_window_event(event); } if self.compositor.shutdown_state != ShutdownState::FinishedShuttingDown { @@ -764,6 +765,10 @@ where pub fn present(&mut self) { self.compositor.present(); } + + pub fn recomposite(&mut self) { + self.compositor.composite(); + } } fn create_embedder_channel( |