mirror of
https://github.com/brl/mutter.git
synced 2025-02-02 06:42:28 +00:00
clutter/stage: Refactor view setup code
We'll share it between pick and paint, so refactor the framebuffer and view setup code from paint into a new function. https://gitlab.gnome.org/GNOME/mutter/merge_requests/865
This commit is contained in:
parent
179d5ba6a6
commit
ff8ed70f84
@ -892,7 +892,7 @@ _clutter_stage_update_active_framebuffer (ClutterStage *stage,
|
||||
* be able to cull them.
|
||||
*/
|
||||
static void
|
||||
clutter_stage_do_paint_view (ClutterStage *stage,
|
||||
setup_view_for_pick_or_paint (ClutterStage *stage,
|
||||
ClutterStageView *view,
|
||||
const cairo_rectangle_int_t *clip)
|
||||
{
|
||||
@ -949,6 +949,14 @@ clutter_stage_do_paint_view (ClutterStage *stage,
|
||||
|
||||
_clutter_stage_paint_volume_stack_free_all (stage);
|
||||
_clutter_stage_update_active_framebuffer (stage, framebuffer);
|
||||
}
|
||||
|
||||
static void
|
||||
clutter_stage_do_paint_view (ClutterStage *stage,
|
||||
ClutterStageView *view,
|
||||
const cairo_rectangle_int_t *clip)
|
||||
{
|
||||
setup_view_for_pick_or_paint (stage, view, clip);
|
||||
clutter_actor_paint (CLUTTER_ACTOR (stage));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user