Poll only visible web surfaces

This commit is contained in:
2026-05-13 01:54:51 -04:00
parent 6ce5df83a8
commit 05ce4afba4
7 changed files with 62 additions and 5 deletions
+2 -2
View File
@@ -74,8 +74,8 @@ impl WebSurfaceStore {
}
}
pub(super) fn tick(&mut self) -> WebSurfaceTickResult {
let frames = self.runtime.tick();
pub(super) fn tick(&mut self, visible_tab_ids: &[TabId]) -> WebSurfaceTickResult {
let frames = self.runtime.tick(visible_tab_ids);
let mut result = WebSurfaceTickResult::default();
for frame in frames {