clutter/stage: Pass redraw clip instead of extents when painting view

That's the struct we have ready, the callee can just call
cairo_region_get_extents() if it only cares about the extents rectangle.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1042
This commit is contained in:
Jonas Ådahl
2020-02-06 09:00:12 +01:00
parent f3dcba27f5
commit c483b52d24
6 changed files with 50 additions and 68 deletions

View File

@ -232,6 +232,7 @@ get_pixel (CoglFramebuffer *fb,
static void
view_painted_cb (ClutterStage *stage,
ClutterStageView *view,
cairo_region_t *redraw_clip,
gpointer data)
{
CoglFramebuffer *fb = clutter_stage_view_get_framebuffer (view);