Re: [whatwg] Canvas in workers

2013-10-13 Thread Glenn Maynard
On Sun, Oct 13, 2013 at 11:22 AM, David Bruant wrote: > bool commit(); >>> Boolean as return value for success? :-s >>> A promise instead maybe? throw instead of false at least? >>> In any case, it looks like commit could be a long operation (tell me if >>> I'm wrong here. Do you h

Re: [whatwg] Canvas in workers

2013-10-13 Thread David Bruant
Le 14/10/2013 01:27, Robert O'Callahan a écrit : On Sun, Oct 13, 2013 at 6:07 PM, David Bruant > wrote: Le 13/10/2013 23:33, Robert O'Callahan a écrit : bool commit(); Boolean as return value for success? :-s A pro

Re: [whatwg] Canvas in workers

2013-10-13 Thread Robert O'Callahan
On Sun, Oct 13, 2013 at 6:07 PM, David Bruant wrote: > Le 13/10/2013 23:33, Robert O'Callahan a écrit : > > >> >>bool commit(); >> >> Boolean as return value for success? :-s >> A promise instead maybe? throw instead of false at least? >> In any case, it looks like com

Re: [whatwg] Canvas in workers

2013-10-13 Thread David Bruant
Le 13/10/2013 23:33, Robert O'Callahan a écrit : bool commit(); Boolean as return value for success? :-s A promise instead maybe? throw instead of false at least? In any case, it looks like commit could be a long operation (tell me if I'm wrong here. Do you have

Re: [whatwg] Canvas in workers

2013-10-13 Thread Robert O'Callahan
On Sun, Oct 13, 2013 at 12:12 PM, Glenn Maynard wrote: > On Sat, Oct 12, 2013 at 11:12 PM, Kyle Huey wrote: > > >1. Rename CanvasProxy to WorkerCanvas and only allow it to be > >transferred to workers. I don't think we're interested in supporting > >cross-origin via CanvasProxy (I

Re: [whatwg] Canvas in workers

2013-10-13 Thread Robert O'Callahan
On Sun, Oct 13, 2013 at 12:01 PM, David Bruant wrote: > Le 13/10/2013 06:12, Kyle Huey a écrit : > > 2. Add a worker-only WorkerCanvas constructor that takes the desired >> width/height of the drawing surface. >> > What is the use case for this constructor? Draw something in worker, > ou

Re: [whatwg] Canvas in workers

2013-10-13 Thread David Bruant
Le 13/10/2013 18:12, Glenn Maynard a écrit : On Sun, Oct 13, 2013 at 11:01 AM, David Bruant wrote: bool commit(); Boolean as return value for success? :-s A promise instead maybe? throw instead of false at least? In any case, it looks like commit could be a long operation (tell me if I'm

Re: [whatwg] Canvas in workers

2013-10-13 Thread Glenn Maynard
On Sat, Oct 12, 2013 at 11:12 PM, Kyle Huey wrote: >1. Rename CanvasProxy to WorkerCanvas and only allow it to be >transferred to workers. I don't think we're interested in supporting >cross-origin via CanvasProxy (I would be curious to hear more >about what the use cases are).

Re: [whatwg] Canvas in workers

2013-10-13 Thread David Bruant
Le 13/10/2013 06:12, Kyle Huey a écrit : I talked at length with Robert O'Callahan about what the DOM API for supporting in web workers should look like and we came up with the following modifications to the spec. 1. Rename CanvasProxy to WorkerCanvas and only allow it to be transferred