[Wayland1.5]Question about wl_shell_get_shell_surface
williamyang13 at hotmail.com
Sat Feb 28 02:05:02 PST 2015
Thank you very much for your reply.
>Maybe your client does call wl_shell_get_shell_surface(), but it does
>not flush the message to the socket. See wl_display_flush().I add wl_display_flush mothed call in source code.
When i run the application,there is no graphic on the display.
But i touch the screen,it seems that the window is rendered on the display.
And i analyze the log and it seems that the render logic is implmented correctly.
Because of calling wl_display_flushthe,the time of IPC between wayland-client and wayland-server is just 1ms.
Why there is no grahic on the display?Could you give me some hint?
> Date: Fri, 27 Feb 2015 10:36:30 +0200
> From: ppaalanen at gmail.com
> To: williamyang13 at hotmail.com
> CC: manuel.bachmann at open.eurogiciel.org; wayland-devel at lists.freedesktop.org
> Subject: Re: [Wayland1.5]Question about wl_shell_get_shell_surface
> On Fri, 27 Feb 2015 08:11:58 +0000
> Yang Andy <williamyang13 at hotmail.com> wrote:
> > Hi Mr.Manuel,Mr.Pekka,
> > Thank you
> > for your reply.
> > I have further
> > investigated my log and find that IPC/communication bewteen Wayland-client(application) and wayland-server(weston)
> > consume 800ms
> > wayland-client/application call wl_shell_get_shell_surface,it takes 800ms until reference
> > methol(shell_get_shell_surface) be called on the wayland-server
> > side.
> > In my
> > opinion,Wayland-client just use socket to
> > communicate with wayland-server,why does it consume
> > 800ms?
> Maybe your client does call wl_shell_get_shell_surface(), but it does
> not flush the message to the socket. See wl_display_flush().
> Also see wl_display_prepare_read() how to properly do the client side
> event loop.
> Or, maybe your compositor does not wake up properly when there is
> incoming data in a client socket. A badly intergrated event loop might
> do that if you don't use wl_display_run().
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the wayland-devel