clutter/stage-cogl: Don't intersect the damage region with the view

Since the damage history region is tracked per-view, all the regions it
includes should be inside the current view anyway, so don't
unnecessarily intersect that region with the view.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1113
This commit is contained in:
Jonas Dreßler 2020-03-06 12:42:16 +01:00 committed by Jonas Ådahl
parent 43c7a82461
commit 967511be61

View File

@ -672,7 +672,6 @@ clutter_stage_cogl_redraw_view (ClutterStageWindow *stage_window,
0, 0, 0, 0,
1.0f / fb_scale); 1.0f / fb_scale);
cairo_region_translate (view_damage, view_rect.x, view_rect.y); cairo_region_translate (view_damage, view_rect.x, view_rect.y);
cairo_region_intersect_rectangle (view_damage, &view_rect);
/* Update the redraw clip region with the extra damage. */ /* Update the redraw clip region with the extra damage. */
cairo_region_union (redraw_clip, view_damage); cairo_region_union (redraw_clip, view_damage);