mirror of
https://github.com/brl/mutter.git
synced 2025-02-09 01:54:10 +00:00
stage: Queue redraw previous Rect only if it has changed
No need to queue redraw the same area multiple times, so we can avoid the computation involved with it. https://gitlab.gnome.org/GNOME/mutter/merge_requests/3
This commit is contained in:
parent
f4c2b69934
commit
42953a50bb
@ -123,8 +123,11 @@ meta_overlay_paint (MetaOverlay *overlay)
|
|||||||
(overlay->current_rect.origin.y +
|
(overlay->current_rect.origin.y +
|
||||||
overlay->current_rect.size.height));
|
overlay->current_rect.size.height));
|
||||||
|
|
||||||
|
if (!clutter_rect_equals (&overlay->previous_rect, &overlay->current_rect))
|
||||||
|
{
|
||||||
overlay->previous_rect = overlay->current_rect;
|
overlay->previous_rect = overlay->current_rect;
|
||||||
overlay->previous_is_valid = TRUE;
|
overlay->previous_is_valid = TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user