mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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
This commit is contained in:
parent
aad2dccc9c
commit
1bbd0c1e6e
4 changed files with 80 additions and 25 deletions
|
@ -1540,6 +1540,7 @@ impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
|
|||
rect: Option<Rect<f32, CSSPixel>>,
|
||||
) -> Result<Option<Image>, UnableToComposite> {
|
||||
if self.waiting_on_present {
|
||||
debug!("tried to composite while waiting on present");
|
||||
return Err(UnableToComposite::NotReadyToPaintImage(
|
||||
NotReadyToPaint::WaitingOnConstellation,
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue