From 32b68478ede34caee447c9803addedc12a4df6c7 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Wed, 18 Nov 2020 19:08:38 +0800 Subject: [PATCH] clutter/stage-cogl: Avoid copying fb_clip_region Because it gets destroyed (unreferenced) immediately after that. This avoids a deep copy of potentially kilobytes of data. Part-of: --- clutter/clutter/cogl/clutter-stage-cogl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c index 794960e82..b7873896f 100644 --- a/clutter/clutter/cogl/clutter-stage-cogl.c +++ b/clutter/clutter/cogl/clutter-stage-cogl.c @@ -613,7 +613,7 @@ clutter_stage_cogl_redraw_view_primary (ClutterStageCogl *stage_cogl, * artefacts. */ if (use_clipped_redraw) - swap_region = cairo_region_copy (fb_clip_region); + swap_region = cairo_region_reference (fb_clip_region); else swap_region = cairo_region_create ();