1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:07:45 +00:00

WindowServer: Only register animations when they're running

This allows us to keep Animation objects around, and the compositor
will only use them when the animation is actually running.
This commit is contained in:
Tom 2023-04-03 21:29:01 -06:00 committed by Linus Groh
parent fa7f9b0f35
commit 426d1b7410
4 changed files with 36 additions and 26 deletions

View file

@ -130,7 +130,6 @@ public:
invalidate_screen();
}
void animation_started(Badge<Animation>);
void invalidate_occlusions() { m_occlusions_dirty = true; }
void overlay_rects_changed();
@ -223,6 +222,7 @@ private:
bool m_invalidated_window { false };
bool m_invalidated_cursor { false };
bool m_overlay_rects_changed { false };
bool m_animations_running { false };
IntrusiveList<&Overlay::m_list_node> m_overlay_list;
Gfx::DisjointIntRectSet m_overlay_rects;