clutter/stage-cogl: Remove unnecessary variable: fb_damage

We no longer have use for a different value to fb_clip_region, so
fb_damage no longer needs to exist.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1554>
This commit is contained in:
Daniel van Vugt 2020-12-17 15:25:35 +08:00
parent 88600c8985
commit 456f80022a

View File

@ -548,25 +548,17 @@ clutter_stage_cogl_redraw_view_primary (ClutterStageCogl *stage_cogl,
if (use_clipped_redraw)
{
cairo_region_t *fb_damage;
int age;
fb_damage = cairo_region_create ();
for (age = 1; age <= buffer_age; age++)
{
const cairo_region_t *old_damage;
old_damage =
clutter_damage_history_lookup (view_priv->damage_history, age);
cairo_region_union (fb_damage, old_damage);
cairo_region_union (fb_clip_region, old_damage);
}
/* Update the fb clip region with the extra damage. */
cairo_region_union (fb_clip_region, fb_damage);
cairo_region_destroy (fb_damage);
CLUTTER_NOTE (CLIPPING, "Reusing back buffer(age=%d) - repairing region: num rects: %d\n",
buffer_age,
cairo_region_num_rectangles (fb_clip_region));