Re: exposing CANVAS or something like it to Web Workers

2013-02-08 Thread Gregg Tavares
ble. You could even have the framebuffer depth configurable. > What would be the advantage? If you wanted to keep dom elements in sync with the canvas you'd still have to post something from the worker back to the main thread so the main thread would know to pop. > > > **

Re: exposing CANVAS or something like it to Web Workers

2013-02-07 Thread Gregg Tavares
ut it might be easier to read the wiki Looking forward to feedback. On Tue, Jan 8, 2013 at 10:50 AM, Ian Hickson wrote: > On Wed, 2 Jan 2013, Gregg Tavares (社ç~T¨) wrote: > > > > Another issue as come up and that is one of being able > > to synchronize updates of a canvas

Re: Reading image bytes to a PNG in a typed array

2013-01-26 Thread Gregg Tavares
Could this be solved in workers? x) Create canvas, set to desired size x) Create 2D context x) Create imageData object x) Create a WebGL framebuffer object x) Attach texture as color target to framebuffer x) read back pixels into canvas2d's imageData.data member x) ctx.putImageData into the canvas

Re: exposing CANVAS or something like it to Web Workers

2013-01-03 Thread Gregg Tavares
On Wed, Jan 2, 2013 at 2:52 PM, Gregg Tavares (社用) wrote: > Another issue as come up and that is one of being able > to synchronize updates of a canvas in > worker with changes in the main page. > > For a real world example see Google's MapsGL > (http://support.google.co

Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-06-30 Thread Gregg Tavares (wrk)
On Tue, Jun 21, 2011 at 10:17 AM, Arun Ranganathan wrote: > ** > > Sorry if these have all been discussed before. I just read the File API for > the first time and 2 random questions popped in my head. > > 1) If I'm using readAsText with a particular encoding and the data in the > file is not ac

Re: Mouse Lock

2011-06-28 Thread Gregg Tavares (wrk)
On Mon, Jun 27, 2011 at 6:17 PM, Glenn Maynard wrote: > On Mon, Jun 27, 2011 at 8:59 PM, Gregg Tavares (wrk) wrote: > >> As far as I know if a game wants to limit movement of the mouse inside a >> window they just mouselock and display their own mouse pointer. The original >

Re: Mouse Lock

2011-06-27 Thread Gregg Tavares (wrk)
On Fri, Jun 24, 2011 at 10:58 AM, Aryeh Gregor wrote: > On Wed, Jun 22, 2011 at 5:20 AM, Simon Pieters wrote: > > On Tue, 21 Jun 2011 00:43:52 +0200, Aryeh Gregor < > simetrical+...@gmail.com> > > wrote: > >> There's a middle ground here: you can lock the mouse to the window, > >> but not complet

Re: Mouse Lock

2011-06-20 Thread Gregg Tavares (wrk)
On Mon, Jun 20, 2011 at 4:53 PM, Adam Barth wrote: > On Mon, Jun 20, 2011 at 3:30 PM, Tab Atkins Jr. > wrote: > > On Mon, Jun 20, 2011 at 3:26 PM, Olli Pettay > wrote: > >> On 06/21/2011 01:08 AM, Tab Atkins Jr. wrote: > >>> On Mon, Jun 20, 2011 at 3:03 PM, Olli Pettay > >>> wrote: > On 0

Re: Mouse Lock

2011-06-19 Thread Gregg Tavares (wrk)
On Sun, Jun 19, 2011 at 5:10 AM, Olli Pettay wrote: > On 06/17/2011 01:21 AM, Vincent Scheib wrote: > >> - 2 new methods on an element to enter and exit mouse lock. Two >> callbacks on the entering call provide notification of success or failure. >> - Mousemove event gains .deltaX .deltaY members,

Re: [FileAPI] Updates to FileAPI Editor's Draft

2011-06-14 Thread Gregg Tavares (wrk)
Sorry if these have all been discussed before. I just read the File API for the first time and 2 random questions popped in my head. 1) If I'm using readAsText with a particular encoding and the data in the file is not actually in that encoding such that code points in the file can not be mapped t

Re: Using ArrayBuffer as payload for binary data to/from Web Workers

2011-05-28 Thread Gregg Tavares (wrk)
On Thu, May 26, 2011 at 8:20 PM, Jonas Sicking wrote: > On Fri, Apr 22, 2011 at 6:26 PM, Kenneth Russell wrote: > > On Mon, Mar 7, 2011 at 6:17 PM, Kenneth Russell wrote: > >> On Mon, Mar 7, 2011 at 5:18 PM, Chris Marrin wrote: > >>> > >>> On Mar 7, 2011, at 4:46 PM, Kenneth Russell wrote: > >

Re: API for matrix manipulation

2011-03-15 Thread Gregg Tavares (wrk)
On Mon, Mar 14, 2011 at 4:27 PM, Chris Marrin wrote: > > On Mar 14, 2011, at 12:19 PM, Lars Knudsen wrote: > > > Hi, > > > > related to this: Is there any work ongoing to tie these (or more generic > vector / matrix) classes to OpenCL / WebCL for faster computation across > CPUs and GPUs? > > On

Re: Mouse Capture for Canvas

2011-02-10 Thread Gregg Tavares (wrk)
Sorry I don't have anything to add to the main discussion points but I want to point out that this should NOT be limited to the canvas tag. There are whole game engines that work on nothing but manipulating DOM elements with z-index and setting style.left and style.top. I can imagine plenty of ot

Re: FileAPI use case: making an image downloading app

2010-12-17 Thread Gregg Tavares (wrk)
n the design of any application of scale. At this > point, the file system API does work for the use case you're describing. > > It'd be nice to see Blob storage better integrated with Web Storage Apis. > Ian has already spoken to this, but no followers yet (afaik). > &g

FileAPI use case: making an image downloading app

2010-12-17 Thread Gregg Tavares (wrk)
Sorry if this has been covered before. I've been wanting to write an app to download images from photo sites and I'm wondering if this use case has been considered for the FileAPI wrt Directories and System. If I understand the current spec it seems like their are some possible issues. #1) The s

Re: requestAnimationFrame

2010-11-23 Thread Gregg Tavares (wrk)
How about this way of looking at it Goals 1) prevent programmer error 2) provide a good user experience (browser is responsive with lots of tabs) The solution to #1 as currently proposed is to guarantee that requestAnimationFrame will have it's callback called periodically, even if it's not visi

Re: requestAnimationFrame

2010-11-18 Thread Gregg Tavares (wrk)
On Thu, Nov 18, 2010 at 1:54 PM, Robert O'Callahan wrote: > On Fri, Nov 19, 2010 at 10:48 AM, Robert O'Callahan > wrote: > >> On Fri, Nov 19, 2010 at 10:46 AM, Darin Fisher wrote: >> >>> I agree. What's the use case for animating hidden tabs (or canvases that >>> are hidden)? >>> >>> One of the

Re: requestAnimationFrame

2010-11-18 Thread Gregg Tavares (wrk)
On Thu, Nov 18, 2010 at 12:45 AM, Robert O'Callahan wrote: > On Thu, Nov 18, 2010 at 4:03 PM, Gregg Tavares (wrk) wrote: > >> On (a) >> Take this page (http://boingboing.net) At the time I checked it today >> (6:55pm PST) it had 10 instances of flash running. O

Re: requestAnimationFrame

2010-11-17 Thread Gregg Tavares (wrk)
On Wed, Nov 17, 2010 at 5:20 PM, Robert O'Callahan wrote: > On Thu, Nov 18, 2010 at 11:22 AM, Gregg Tavares (wrk) wrote: > >> Think about this some more. the point if the previous suggestion is >> that updating keeping a JS animation in sync with a CSS animation ha

Re: requestAnimationFrame

2010-11-17 Thread Gregg Tavares (wrk)
On Wed, Nov 17, 2010 at 10:45 AM, Gregg Tavares (wrk) wrote: > > > On Tue, Nov 16, 2010 at 12:28 PM, Robert O'Callahan > wrote: > >> On Wed, Nov 17, 2010 at 7:52 AM, Gregg Tavares (wrk) wrote: >> >>> So if the JS on the beforePaint takes a while to comp

Re: requestAnimationFrame

2010-11-17 Thread Gregg Tavares (wrk)
On Tue, Nov 16, 2010 at 12:28 PM, Robert O'Callahan wrote: > On Wed, Nov 17, 2010 at 7:52 AM, Gregg Tavares (wrk) wrote: > >> So if the JS on the beforePaint takes a while to complete what happens to >> the browser? For example if you are resizing the browser? Is the brow

Re: requestAnimationFrame

2010-11-16 Thread Gregg Tavares (wrk)
On Mon, Nov 15, 2010 at 7:24 PM, Robert O'Callahan wrote: > On Tue, Nov 16, 2010 at 1:45 PM, Gregg Tavares (wrk) wrote: > >> On Mon, Nov 15, 2010 at 4:07 PM, Robert O'Callahan >> wrote: >> >>> On Tue, Nov 16, 2010 at 12:55 PM, Gregg Tavares (wrk)

Re: requestAnimationFrame

2010-11-15 Thread Gregg Tavares (wrk)
On Mon, Nov 15, 2010 at 5:10 PM, Jonas Sicking wrote: > On Mon, Nov 15, 2010 at 5:01 PM, Bjoern Hoehrmann > wrote: > > * Gregg Tavares (wrk) wrote: > >>There is plenty of flash content that has a lower than 60hz (or fast as > >>possible) refresh rate. When someth

Re: requestAnimationFrame

2010-11-15 Thread Gregg Tavares (wrk)
On Mon, Nov 15, 2010 at 4:07 PM, Robert O'Callahan wrote: > On Tue, Nov 16, 2010 at 12:55 PM, Gregg Tavares (wrk) wrote: > >> I've seen proposals for something more like >> >> element.setInternvalIfVisible(func, internval); >> >> Which is the s

Re: requestAnimationFrame

2010-11-15 Thread Gregg Tavares (wrk)
On Mon, Nov 15, 2010 at 3:58 PM, Robert O'Callahan wrote: > On Tue, Nov 16, 2010 at 12:03 PM, Gregg Tavares (wrk) wrote: > >> One is, how should this api be used if I want an app to update at 10hz. >> It seems to be designed to assume I want the maximum frame rate. If

Re: requestAnimationFrame

2010-11-15 Thread Gregg Tavares (wrk)
On Mon, Nov 15, 2010 at 3:28 PM, Boris Zbarsky wrote: > On 11/15/10 6:03 PM, Gregg Tavares (wrk) wrote: > >> One is, how should this api be used if I want an app to update at 10hz. >> It seems to be designed to assume I want the maximum frame rate. >> > > The initi

requestAnimationFrame

2010-11-15 Thread Gregg Tavares (wrk)
following in the footsteps of a previous thread http://lists.w3.org/Archives/Public/public-webapps/2009OctDec/0223.html I'd like to see if there is some consensus on this issue. Various people are anxious to see this happen in more browsers. A couple of questions came up for requestAnimationFrame

Re: [widgets] Zip vs GZip Tar

2010-04-29 Thread Gregg Tavares
On Thu, Apr 29, 2010 at 2:52 AM, Arve Bersvendsen wrote: > On Wed, 28 Apr 2010 18:48:52 +0200, Gregg Tavares wrote: > > Has there been any consideration of switching the spec to a stream-able >> format like gzipped tar files? It seems like a shame to miss this use >> case

Re: [widgets] Zip vs GZip Tar

2010-04-28 Thread Gregg Tavares
On Wed, Apr 28, 2010 at 2:28 PM, timeless wrote: > On Wed, Apr 28, 2010 at 7:48 PM, Gregg Tavares wrote: > > I'm sorry if I'm not familiar with all the details of how the widgets > spec > > is going but the specs encourage comment so I'm commenting :-) > >

Re: [widgets] Zip vs GZip Tar

2010-04-28 Thread Gregg Tavares
On Wed, Apr 28, 2010 at 2:28 PM, timeless wrote: > On Wed, Apr 28, 2010 at 7:48 PM, Gregg Tavares wrote: > > I'm sorry if I'm not familiar with all the details of how the widgets > spec > > is going but the specs encourage comment so I'm commenting :-) > >

[widgets] Zip vs GZip Tar

2010-04-28 Thread Gregg Tavares
I'm sorry if I'm not familiar with all the details of how the widgets spec is going but the specs encourage comment so I'm commenting :-) It seems like widgets have 2 uses #1) As a way to package an HTML5 app that can be downloaded similar to a native executable #2) As a way to package an HT

element.onresize

2010-02-02 Thread Gregg Tavares
I'm not sure if this is the correct place for this but: Has there been any discussion of adding an element.onresize event? The issue that has come up is the canvas tag, in 2d or 3d, when the canvas changes its displayed size, a webapp might want to respond by changing the size of the internal rep

solving the CPU usage issue for non-visible pages

2009-10-19 Thread Gregg Tavares
I posted something about this in the whatwg list and was told to bring it here. Currently, AFAIK, the only way to do animation in HTML5 + JavaScript is using setInterval. That's great but it has the problem that even when the window is minimized or the page is not the front tab, JavaScript has no

Re: RFC: WebApp timing

2009-08-13 Thread Gregg Tavares
On Wed, Aug 12, 2009 at 6:12 PM, Zhiheng Wang wrote: > Hello, > >We recently started a draft to provide timing-related APIs in browsers. > The goal is to add the missing pieces in webapp latency measurements using > Javascript. As a starter, right now we've only include a > minimum set of int

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-06 Thread Gregg Tavares
On Thu, Aug 6, 2009 at 2:35 AM, Anne van Kesteren wrote: > On Thu, 06 Aug 2009 10:53:31 +0200, Gregg Tavares wrote: > >> On Thu, Aug 6, 2009 at 12:48 AM, Anne van Kesteren >> wrote: >> >>> XHR does not do local data. It also does not do raw file data v

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-06 Thread Gregg Tavares
On Thu, Aug 6, 2009 at 12:48 AM, Anne van Kesteren wrote: > On Thu, 06 Aug 2009 01:10:31 +0200, Gregg Tavares wrote: > >> Why make a new API for getting the contents of a file (local or otherwise) >> when we already have one which is XHR? >> > > XHR does not do l

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Gregg Tavares
On Wed, Aug 5, 2009 at 8:08 PM, Garrett Smith wrote: > On Wed, Aug 5, 2009 at 1:04 AM, Arun Ranganathan wrote: > > Garrett Smith wrote: > >> > >> Please show the subsequent use cases you've studied and please do > >> publish your studies. > >> > >> > > > > What I meant by "use cases" was this exch

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Gregg Tavares
How about this? Why make a new API for getting the contents of a file (local or otherwise) when we already have one which is XHR? What if FileList was just array of File objects where each File object is just a URL in the format "filedata: uuid, filename" Then you can use that URL anywhere in H

Re: Multipart or TAR archive/package support for all APIs (Performance and scalability)

2009-08-05 Thread Gregg Tavares
On Tue, Aug 4, 2009 at 12:15 PM, Sebastian Markbåge wrote: > There has been some talk about supporting packages/archives in web APIs. > > http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-July/021586.html > http://lists.w3.org/Archives/Public/public-webapps/2009JulSep/0460.html > >

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Gregg Tavares
On Wed, Aug 5, 2009 at 1:47 AM, Arun Ranganathan wrote: > Gregg Tavares wrote: > >> I'd really like to contribute to this as I'm helping implement WebGL and >> we >> need a way to get LOTS of data into WebGL. Hundreds of files per app. >> >>

Re: New FileAPI Draft | was Re: FileAPI feedback

2009-08-05 Thread Gregg Tavares
I'd really like to contribute to this as I'm helping implement WebGL and we need a way to get LOTS of data into WebGL. Hundreds of files per app. That said, there's a bunch of things I don't understand about the API *) Given that XMLHttpRequest is limited to a same domain policy but the img tag,

Re: [whatwg] An BinaryArchive API for HTML5?

2009-08-04 Thread Gregg Tavares
On Tue, Aug 4, 2009 at 6:43 PM, Ian Hickson wrote: > > On Thu, 30 Jul 2009, Sebastian Markbåge wrote: > > > > This suggestion seems similar to Digg's Stream project that uses > multipart > > documents: http://github.com/digg/stream > > > > While it would be nice to have a way to parse and handle

Adding gzipped archive support to XMLHttpRequest and the File API?

2009-08-03 Thread Gregg Tavares
I hope I'm in the right place. I'd like to propose / suggest that XMLHttpRequest be extended to handle gzipped tar files. Usage would be something like var req = new XMLHttpRequest(); req.onfileavailable = myOnFileAvailable; req.open("GET", "http://someplace.com/somefile.tgz";, true); req.send();