Re: [RFC] protocol: Introduce logical surface protocol

2013-03-30 Thread Daniel Stone
Hi, On 30 March 2013 20:40, Jason Ekstrand wrote: > On Fri, Mar 29, 2013 at 12:02 PM, Daniel Stone > wrote: > > Yeah, we need to define API here. For EGL, it'd be a matter of the EGL > > implementation sending an event in between register_buffer and > > buffer_available, such that when you cal

Re: [RFC] protocol: Introduce logical surface protocol

2013-03-30 Thread Jason Ekstrand
On Fri, Mar 29, 2013 at 12:02 PM, Daniel Stone wrote: > Hi Jason, > > On 29 March 2013 16:55, Jason Ekstrand wrote: >> >> A few quick thoughts, more to come. First, your get_export_surface has >> two new_id arguments. I don't think that's intended. > > Oops, thanks! >> >> Second, we currently ha

Re: [RFC] protocol: Introduce logical surface protocol

2013-03-29 Thread Daniel Stone
Hi Jason, On 29 March 2013 16:55, Jason Ekstrand wrote: > > A few quick thoughts, more to come. First, your get_export_surface has > two new_id arguments. I don't think that's intended. > Oops, thanks! > Second, we currently have no way for a client to retrieve data from a > buffer. This will b

Re: [RFC] protocol: Introduce logical surface protocol

2013-03-29 Thread Jason Ekstrand
Daniel, A few quick thoughts, more to come. First, your get_export_surface has two new_id arguments. I don't think that's intended. Second, we currently have no way for a client to retrieve data from a buffer. This will be a problem for client-side compositing. --Jason Ekstrand On Mar 29, 2013 11

Re: [RFC] protocol: Introduce logical surface protocol

2013-03-29 Thread Daniel Stone
Hi Jonas, On 17 March 2013 09:13, Jonas Ådahl wrote: > A logical surface is a special kind of surface that never gets its own > buffer attached, or opaque region set etc. It is obtained by using a > surface handle that can be shared in some way between clients. A handle > is a server wide unique

Re: [RFC] protocol: Introduce logical surface protocol

2013-03-18 Thread Bill Spitzak
Jonas Ådahl wrote: A logical surface is a special kind of surface that never gets its own buffer attached, or opaque region set etc. It is obtained by using a surface handle that can be shared in some way between clients. A handle is a server wide unique identifier retrieved from the server giv

Re: [RFC] protocol: Introduce logical surface protocol

2013-03-17 Thread Jonas Ådahl
On Sun, Mar 17, 2013 at 11:47 AM, John Kåre Alsaker wrote: > I believe this is the wrong approach. I'd rather see some generic way > to share any wl_object between clients securely. I don't see a > transfer of ownership of your handle which means any client and get > access to it. There is no par

Re: [RFC] protocol: Introduce logical surface protocol

2013-03-17 Thread John Kåre Alsaker
I believe this is the wrong approach. I'd rather see some generic way to share any wl_object between clients securely. I don't see a transfer of ownership of your handle which means any client and get access to it. I'd rather have something like this: One connection uses

[RFC] protocol: Introduce logical surface protocol

2013-03-17 Thread Jonas Ådahl
A logical surface is a special kind of surface that never gets its own buffer attached, or opaque region set etc. It is obtained by using a surface handle that can be shared in some way between clients. A handle is a server wide unique identifier retrieved from the server given a real surface. Curr