[PATCH weston] remove warning of ivisurface reassign on the ivilayer

Wataru Natsume wataru_natsume at xddp.denso.co.jp
Thu Mar 3 10:56:09 UTC 2016


From: Wataru Natsume <WATARU_NATSUME at xddp.denso.co.jp>

The warning of ivisurface reassign can be removed. Current ivi_layout_layer_add_surface() removes the ivisurface from its previous ivilayer and returns sucess.

Signed-off-by: Wataru Natsume <WATARU_NATSUME at xddp.denso.co.jp>
---
 ivi-shell/ivi-layout.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index f7c4f27..7da229e 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -2418,7 +2418,13 @@ ivi_layout_layer_add_surface(struct ivi_layout_layer *ivilayer,
 	}
 
 	if (addsurf->on_layer == ivilayer) {
-		weston_log("ivi_layout_layer_add_surface: addsurf is already available\n");
+		/*
+		 * Just disable the check to avoid that this warning occurred when surface
+		 * position moves in the same layer.
+		 * This code will get rewritten anyway when views are added in current design
+		 * as a tying object.
+		 */
+		/* weston_log("ivi_layout_layer_add_surface: addsurf is already available\n"); */
 		return IVI_SUCCEEDED;
 	}
 
-- 
1.7.9.5



More information about the wayland-devel mailing list