layout: Remove explicit damage call 17/27017/1 12.1.1 12.1.2 12.1.3 lamprey/12.1.1 lamprey/12.1.2 lamprey/12.1.3 lamprey_12.1.1 lamprey_12.1.2 lamprey_12.1.3
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 16 Dec 2021 12:41:08 +0000 (14:41 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 17 Dec 2021 13:58:39 +0000 (13:58 +0000)
As we will be marking all the views dirty, weston_output_repaint()
should pick-up correctly any inflicted damage, and perform an
implicit redraw without the need for an explict to call to
weston_view_below_damage().

Note that we still need to schedule a repaint for that particular view.

While at it, also remove an explicit call to
weston_view_update_transform() which is going to be handled internally
as well, when rebuilding the view list by libweston.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ic701daebe69613b3dcc8eef96cac05c1b803327a

src/layout.c

index bcc8581..322fa80 100644 (file)
@@ -215,10 +215,9 @@ ivi_layout_activate_complete(struct ivi_output *output,
        output->active = surf;
 
        weston_layer_entry_insert(&ivi->normal.view_list, &view->layer_link);
-       weston_view_update_transform(view);
-       weston_view_geometry_dirty(view);
 
-       weston_view_damage_below(view);
+       weston_view_geometry_dirty(view);
+       weston_view_schedule_repaint(view);
 
        /*
         * the 'remote' role now makes use of this part so make sure we don't