Re: [whatwg] Canvas in workers

2013-10-16 Thread David Bruant
Le 16/10/2013 01:26, Robert O'Callahan a écrit : On Wed, Oct 16, 2013 at 11:55 AM, David Bruant bruan...@gmail.com mailto:bruan...@gmail.com wrote: If the main thread is blocked, the app drops frames anyway, no? Not necessarily. We can allow workers to present frames to the compositor

Re: [whatwg] Canvas in workers

2013-10-16 Thread Justin Novosad
On Tue, Oct 15, 2013 at 8:30 PM, Kenneth Russell k...@google.com wrote: On Tue, Oct 15, 2013 at 4:41 PM, Robert O'Callahan rob...@ocallahan.org wrote: If you squint, WorkerCanvas.transferToImageBitmap is similar to detaching a DrawingBuffer. But I don't see a need to reattach a buffer to a

Re: [whatwg] Stroking algorithm in Canvas 2d

2013-10-16 Thread Justin Novosad
On Tue, Oct 15, 2013 at 7:18 PM, Ian Hickson i...@hixie.ch wrote: On Thu, 10 Oct 2013, Rik Cabanier wrote: On Thu, Oct 10, 2013 at 12:25 PM, Justin Novosad ju...@google.com wrote: http://jsfiddle.net/ZxR6P/1/ Yes, that looks like Align dashes to corners and path ends I've filed a

Re: [whatwg] Canvas in workers

2013-10-16 Thread Glenn Maynard
On Wed, Oct 16, 2013 at 8:01 AM, Justin Novosad ju...@google.com wrote: ... oh... so the UI could be updated even if JS is blocking... the future is bright :-) If the UI is all painted in a canvas, then yes. Let's not get ahead of ourselves though. Browsers that have a compositor in a

Re: [whatwg] Canvas in workers

2013-10-16 Thread Kenneth Russell
On Wed, Oct 16, 2013 at 5:39 AM, Justin Novosad ju...@google.com wrote: On Tue, Oct 15, 2013 at 8:30 PM, Kenneth Russell k...@google.com wrote: On Tue, Oct 15, 2013 at 4:41 PM, Robert O'Callahan rob...@ocallahan.org wrote: If you squint, WorkerCanvas.transferToImageBitmap is similar to

Re: [whatwg] Stroking algorithm in Canvas 2d

2013-10-16 Thread Ian Hickson
On Wed, 16 Oct 2013, Justin Novosad wrote: No, I don't mean an implied zero. I meant that at every iteration over the dash pattern, the pattern is inverted if it has an odd number of elements (blanks become dashes and vice versa). This would render exactly the same as what is currently in

Re: [whatwg] Stroking algorithm in Canvas 2d

2013-10-16 Thread Justin Novosad
Also, I think we may have passed the point of no return on this. setLineDash is already widely supported as currently spec'ed. On Wed, Oct 16, 2013 at 1:43 PM, Ian Hickson i...@hixie.ch wrote: On Wed, 16 Oct 2013, Justin Novosad wrote: No, I don't mean an implied zero. I meant that at

Re: [whatwg] Proposal: Locale Preferences API

2013-10-16 Thread Erik Arvidsson
This looks very useful and the proposal looks solid. On Mon, Oct 14, 2013 at 6:43 PM, Ian Hickson i...@hixie.ch wrote: On Mon, 14 Oct 2013, Marcos Caceres wrote: Ping? Mozilla would like to know if anyone else is interested or specially if people are NOT interested. We would like to

Re: [whatwg] Outline style to use for drawSystemFocusRing

2013-10-16 Thread Ian Hickson
On Thu, 12 Sep 2013, Dominic Mazzoni wrote: On Wed, Sep 11, 2013 at 5:54 PM, Ian Hickson i...@hixie.ch wrote: On Tue, 10 Sep 2013, Dominic Mazzoni wrote: We've finished implementing drawSystemFocusRing and drawCustomFocusRing in Chrome. Try it in Chrome 31 or higher (either canary

Re: [whatwg] Canvas in workers

2013-10-16 Thread Robert O'Callahan
On Thu, Oct 17, 2013 at 6:35 AM, Kenneth Russell k...@google.com wrote: Yes, right. That factory method is already spec'ed on the WorkerGlobalScope [1]. It actually returns a Promise, so presumably transferToImageBitmap would have to as well. The whole point of transferToImageBitmap is that

Re: [whatwg] Canvas in workers

2013-10-16 Thread Justin Novosad
On Wed, Oct 16, 2013 at 3:53 PM, Robert O'Callahan rob...@ocallahan.orgwrote: On Thu, Oct 17, 2013 at 6:35 AM, Kenneth Russell k...@google.com wrote: Yes, right. That factory method is already spec'ed on the WorkerGlobalScope [1]. It actually returns a Promise, so presumably

Re: [whatwg] Notifications: usage feedback

2013-10-16 Thread James Burke
On Mon, Oct 14, 2013 at 7:09 AM, Anne van Kesteren ann...@annevk.nl wrote: It seems using a structured clone makes the most sense. Transfering objects won't work here. It's not entirely clear to me what the best is for Blob, File, etc. Effectively the page can shut down, but they will still

Re: [whatwg] Canvas in workers

2013-10-16 Thread Kenneth Russell
On Wed, Oct 16, 2013 at 1:13 PM, Justin Novosad ju...@google.com wrote: On Wed, Oct 16, 2013 at 3:53 PM, Robert O'Callahan rob...@ocallahan.org wrote: On Thu, Oct 17, 2013 at 6:35 AM, Kenneth Russell k...@google.com wrote: Yes, right. That factory method is already spec'ed on the

Re: [whatwg] Outline style to use for drawSystemFocusRing

2013-10-16 Thread Dominic Mazzoni
On Wed, Oct 16, 2013 at 12:46 PM, Ian Hickson i...@hixie.ch wrote: WCAG 2.0 claims that many platforms allow the user to customize the rendering of this focus indicator, though I admit that I don't see any references for this claim: http://www.w3.org/TR/WCAG-TECHS/G165.html IBM

Re: [whatwg] Outline style to use for drawSystemFocusRing

2013-10-16 Thread Rik Cabanier
On Wed, Oct 16, 2013 at 12:46 PM, Ian Hickson i...@hixie.ch wrote: On Thu, 12 Sep 2013, Dominic Mazzoni wrote: On Wed, Sep 11, 2013 at 5:54 PM, Ian Hickson i...@hixie.ch wrote: On Tue, 10 Sep 2013, Dominic Mazzoni wrote: We've finished implementing drawSystemFocusRing and

Re: [whatwg] Canvas in workers

2013-10-16 Thread Anne van Kesteren
On Wed, Oct 16, 2013 at 9:23 PM, Kenneth Russell k...@google.com wrote: While the Promise returned from createImageBitmap(HTMLCanvasElement) can be fulfilled immediately, is it worth introducing a special overload with a different return type? Well if you want a synchronous method a promise is

Re: [whatwg] Canvas in workers

2013-10-16 Thread Domenic Denicola
From: whatwg-boun...@lists.whatwg.org [whatwg-boun...@lists.whatwg.org] on behalf of Anne van Kesteren [ann...@annevk.nl] On Wed, Oct 16, 2013 at 9:23 PM, Kenneth Russell k...@google.com wrote: While the Promise returned from createImageBitmap(HTMLCanvasElement) can be fulfilled immediately,

Re: [whatwg] Canvas in workers

2013-10-16 Thread Justin Novosad
On Wed, Oct 16, 2013 at 5:29 PM, Domenic Denicola dome...@domenicdenicola.com wrote: From: whatwg-boun...@lists.whatwg.org [whatwg-boun...@lists.whatwg.org] on behalf of Anne van Kesteren [ann...@annevk.nl] On Wed, Oct 16, 2013 at 9:23 PM, Kenneth Russell k...@google.com wrote: While the

Re: [whatwg] canvas 2d's ellipse

2013-10-16 Thread Ian Hickson
On Tue, 17 Sep 2013, Rik Cabanier wrote: On Tue, Sep 17, 2013 at 1:27 PM, Ian Hickson i...@hixie.ch wrote: Dramatically simplifying the situation here, we're saying that the available options are: A: All buggy applications fail to compile, because of static checking. Cost to fix

Re: [whatwg] Path API feedback

2013-10-16 Thread Ian Hickson
On Wed, 18 Sep 2013, Rik Cabanier wrote: On Tue, Sep 17, 2013 at 10:20 AM, Ian Hickson i...@hixie.ch wrote: On Tue, 20 Aug 2013, Rik Cabanier wrote: On Sat, 23 Mar 2013, Rik Cabanier wrote: The current path APIs suffer from conflating path segments and geometry. To fix this,

Re: [whatwg] Questions regarding Path object

2013-10-16 Thread Ian Hickson
On Fri, 20 Sep 2013, Jürg Lehni wrote: On Aug 20, 2013, at 11:32 , Ian Hickson i...@hixie.ch wrote: On Sat, 23 Mar 2013, Jürg Lehni wrote: - Paper.js has its own share of classes, and one of them is called Path. We normally run scoped but allow people to inject into the global scope.

Re: [whatwg] Canvas - Somewhat inconsistent rules in the spec for drawImage

2013-10-16 Thread Ian Hickson
On Fri, 20 Sep 2013, Simon Sarris wrote: Summary: You can draw zero-sized Images and objects with zero-sized source rects to the canvas context. You cannot draw zero-sized Canvases, you get an InvalidStateError. According to the spec this is right, but I think there should be more

[whatwg] Counterproposal for canvas in workers

2013-10-16 Thread Rik Cabanier
All, I have another proposal on how we can do canvas in workers. If it's not practical or too complex, feel free to dismiss it. :-) When drawing to canvas, Chrome stores the drawing commands in a buffer and executes them when the main function returns (or access to pixel data is requested). It

Re: [whatwg] Path API feedback

2013-10-16 Thread Rik Cabanier
On Wed, Oct 16, 2013 at 3:01 PM, Ian Hickson i...@hixie.ch wrote: On Wed, 18 Sep 2013, Rik Cabanier wrote: On Tue, Sep 17, 2013 at 10:20 AM, Ian Hickson i...@hixie.ch wrote: On Tue, 20 Aug 2013, Rik Cabanier wrote: On Sat, 23 Mar 2013, Rik Cabanier wrote: The current path

Re: [whatwg] Stroking algorithm in Canvas 2d

2013-10-16 Thread Rik Cabanier
Yes, Blink, Webkit, IE and Firefox all settled on the current spec for setLineDash. On Wed, Oct 16, 2013 at 10:50 AM, Justin Novosad ju...@google.com wrote: Also, I think we may have passed the point of no return on this. setLineDash is already widely supported as currently spec'ed. On

Re: [whatwg] Counterproposal for canvas in workers

2013-10-16 Thread Robert O'Callahan
On Thu, Oct 17, 2013 at 3:34 PM, Rik Cabanier caban...@gmail.com wrote: The tasks themselves can also launch synchronized/unsynchronized subtasks with promises. A task is considered done if it exits and all its promises are fulfilled. It seems that tasks are like workers, but different, and