From 5f1a952eca13ce07d9ee25ca13026ec3759d0ba7 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Fri, 10 Sep 2021 14:17:17 +0900 Subject: [PATCH] view: add and fix the trace log of view Change-Id: I8a65d730ad9e26494a0b1e8600dfaa969fc8f167 --- src/lib/pepper/view.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/lib/pepper/view.c b/src/lib/pepper/view.c index 3699c5f..7eedc4a 100644 --- a/src/lib/pepper/view.c +++ b/src/lib/pepper/view.c @@ -36,7 +36,7 @@ pepper_view_mark_dirty(pepper_view_t *view, uint32_t flag) int i; if (view->dirty & flag) { - PEPPER_TRACE("pepper_view_mark_dirty view:%p, dirty:%x, flag:%x\n", view, view->dirty, flag); + PEPPER_TRACE("view:%p, dirty:%x, flag:%x\n", view, view->dirty, flag); return; } @@ -165,18 +165,22 @@ pepper_view_update(pepper_view_t *view) view->dirty &= ~PEPPER_VIEW_ACTIVE_DIRTY; if (!view->dirty) { - PEPPER_TRACE("pepper_view_update view:%p not dirty\n", view); + PEPPER_TRACE("view:%p not dirty\n", view); return; } + PEPPER_TRACE("view:%p dirty\n", view); + view->active = active; /* Damage for the view unmap will be handled by assigning NULL plane. */ if (!view->active) { - PEPPER_TRACE("pepper_view_update view:%p not active\n", view); + PEPPER_TRACE("view:%p not active\n", view); return; } + PEPPER_TRACE("view:%p active\n", view); + /* We treat the modification as unmapping and remapping the view. So, * damage for the unmap and damage for the remap. * @@ -251,6 +255,8 @@ pepper_view_update(pepper_view_t *view) } } + PEPPER_TRACE("view:%p output_overlap:%d\n", view, view->output_overlap); + /* Mark the plane entries as damaged. */ for (i = 0; i < PEPPER_MAX_OUTPUT_COUNT; i++) view->plane_entries[i].need_damage = PEPPER_TRUE; -- 2.34.1