Re: multiple wl surfaces commit in one client

2020-11-07 Thread zou lan
Hi Simon & Jonas May I ask if https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/26#note_554405 only include the patch of protocol xml file https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/26/diffs?commit_id=108ab3ef2c9e028e6159793e6c4cae6ed9c7a546,

Re: multiple wl surfaces commit in one client

2020-11-06 Thread Simon Ser
On Friday, November 6, 2020 10:38 AM, Jonas Ådahl wrote: > On Fri, Nov 06, 2020 at 07:51:26AM +, Simon Ser wrote: > > > Hi, > > On Friday, November 6, 2020 3:14 AM, zou lan nancy.lan@gmail.com wrote: > > > > > Hi Simon & pekka > > > Thank you for your reply! > > > > > > > > The OS could p

Re: multiple wl surfaces commit in one client

2020-11-06 Thread Jonas Ådahl
On Fri, Nov 06, 2020 at 07:51:26AM +, Simon Ser wrote: > Hi, > > On Friday, November 6, 2020 3:14 AM, zou lan wrote: > > > Hi Simon & pekka > > > > Thank you for your reply! > > > > >>The OS could pre-empt the client after > > >>the first wl_surface_commit is flushed on the wire and before t

Re: multiple wl surfaces commit in one client

2020-11-05 Thread Simon Ser
Hi, On Friday, November 6, 2020 3:14 AM, zou lan wrote: > Hi Simon & pekka > > Thank you for your reply! > > >>The OS could pre-empt the client after > >>the first wl_surface_commit is flushed on the wire and before the > >>second one is. > > I want to ask if after first wl_surface_commit, but I

Re: multiple wl surfaces commit in one client

2020-11-05 Thread zou lan
Hi Simon & pekka Thank you for your reply! >>The OS could pre-empt the client after >>the first wl_surface_commit is flushed on the wire and before the >>second one is. I want to ask if after first wl_surface_commit, but I don't call wl_display_flush/wl_display_dispatch, is the first wl_surface_

Re: multiple wl surfaces commit in one client

2020-11-05 Thread Pekka Paalanen
On Thu, 05 Nov 2020 07:35:04 + Simon Ser wrote: > Hi, > > On Thursday, November 5, 2020 3:26 AM, zou lan > wrote: > > > Hi pekka > > > > I want to ask if in one client have created many wl surfaces, and commit > > all of them to weston in one frame, could weston guarantee to handle these

Re: multiple wl surfaces commit in one client

2020-11-04 Thread Simon Ser
Hi, On Thursday, November 5, 2020 3:26 AM, zou lan wrote: > Hi pekka > > I want to ask if in one client have created many wl surfaces, and commit all > of them to weston in one frame, could weston guarantee to handle these > surface update commands in one repaint? > > The sample code may like

multiple wl surfaces commit in one client

2020-11-04 Thread zou lan
Hi pekka I want to ask if in one client have created many wl surfaces, and commit all of them to weston in one frame, could weston guarantee to handle these surface update commands in one repaint? The sample code may like this: redraw() { wl_surface_commit(surface1); wl_surface_commit(surface2);