mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
WindowServer: Don't re-render the window frame when not needed
Merely moving a window shouldn't require re-rendering the window frame anymore now that we cache the rendered frame in bitmaps. This reduces CPU usage significantly when moving windows.
This commit is contained in:
parent
497d48a8de
commit
f8d65e57ba
5 changed files with 22 additions and 23 deletions
|
@ -179,7 +179,7 @@ public:
|
|||
|
||||
Gfx::IntSize size() const { return m_rect.size(); }
|
||||
|
||||
void invalidate(bool with_frame = true);
|
||||
void invalidate(bool with_frame = true, bool re_render_frame = false);
|
||||
void invalidate(const Gfx::IntRect&, bool with_frame = false);
|
||||
bool invalidate_no_notify(const Gfx::IntRect& rect, bool with_frame = false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue