weston: fix surface visible [1/1]

PD#SWPL-188220

Problem:
youtube don't set visible

Solution:
when direct display, the surface visible is false, set alpha to 0

Verify:
s7d

Change-Id: If8b0f79773debdd8883eebd004c43e2ec2a6cb57
Signed-off-by: leng.fang <leng.fang@amlogic.com>
diff --git a/libweston/compositor.c b/libweston/compositor.c
index 9bab03e..4d5bec2 100644
--- a/libweston/compositor.c
+++ b/libweston/compositor.c
@@ -2818,7 +2818,7 @@
 	struct weston_paint_node *pnode;
 	struct weston_subsurface *sub;
 
-	if (!view->visible)
+	if (!weston_compositor_get_view_visible(view))
 		return;
 
 	weston_view_update_transform(view);