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

WindowServer: Try harder to avoid re-rendering window shadow

We only really need to re-render the simple window shadow when
the size of the frame changes. So, for all other cases only re-render
the window frame without rendering the shadow.
This commit is contained in:
Tom 2021-02-09 10:22:51 -07:00 committed by Andreas Kling
parent 0ce4b9d7db
commit 3d374954eb
2 changed files with 35 additions and 15 deletions

View file

@ -113,6 +113,7 @@ private:
size_t m_flash_counter { 0 };
float m_opacity { 1 };
bool m_has_alpha_channel { false };
bool m_shadow_dirty { false };
bool m_dirty { false };
};