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:
@ -209,15 +209,17 @@ meta_stage_paint (ClutterActor *actor,
|
||||
}
|
||||
|
||||
static void
|
||||
meta_stage_paint_view (ClutterStage *stage,
|
||||
ClutterStageView *view)
|
||||
meta_stage_paint_view (ClutterStage *stage,
|
||||
ClutterStageView *view,
|
||||
const cairo_region_t *redraw_clip)
|
||||
{
|
||||
MetaStage *meta_stage = META_STAGE (stage);
|
||||
|
||||
notify_watchers_for_mode (meta_stage, view, META_STAGE_WATCH_BEFORE_PAINT);
|
||||
|
||||
meta_stage->current_view = view;
|
||||
CLUTTER_STAGE_CLASS (meta_stage_parent_class)->paint_view (stage, view);
|
||||
CLUTTER_STAGE_CLASS (meta_stage_parent_class)->paint_view (stage, view,
|
||||
redraw_clip);
|
||||
|
||||
notify_watchers_for_mode (meta_stage, view, META_STAGE_WATCH_AFTER_PAINT);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user