mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1572>
This commit is contained in:
parent
09b1bbb1cf
commit
32b68478ed
@ -613,7 +613,7 @@ clutter_stage_cogl_redraw_view_primary (ClutterStageCogl *stage_cogl,
|
|||||||
* artefacts.
|
* artefacts.
|
||||||
*/
|
*/
|
||||||
if (use_clipped_redraw)
|
if (use_clipped_redraw)
|
||||||
swap_region = cairo_region_copy (fb_clip_region);
|
swap_region = cairo_region_reference (fb_clip_region);
|
||||||
else
|
else
|
||||||
swap_region = cairo_region_create ();
|
swap_region = cairo_region_create ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user