Adding a paint event to HTMLElement to support Web Components / Shadow DOM

2012-05-08 Thread
Imagine you want to make a Web Component that draws a graph Imagine that you'd like the graph to show more data if it's larger and less if it's smaller. In other words, you don't want it to scale the data. Imagine you set that component's size to width: 100%; height: 100% to scale to its container

Re: Adding a paint event to HTMLElement to support Web Components / Shadow DOM

2012-05-08 Thread
On Tue, May 8, 2012 at 5:56 PM, Boris Zbarsky wrote: > On 5/8/12 8:30 PM, Gregg Tavares (勤) wrote: > >> AFAICT the resize event only fires on window. >> > > There have been proposals over the years to change that. > > > Imagine a relatively heavy to repaint

exposing CANVAS or something like it to Web Workers

2012-05-14 Thread
I'd like to work on exposing something like CANVAS to web workers. Ideally how over it works I'd like to be able to *) get a 2d context in a web worker *) get a WebGL context in a web worker *) download images in a web worker and the images with both 2d contexts and WebGL contexts Any thoughts?

Re: exposing CANVAS or something like it to Web Workers

2012-05-14 Thread
On Mon, May 14, 2012 at 4:42 PM, Jonas Sicking wrote: > On Mon, May 14, 2012 at 3:28 PM, Glenn Maynard wrote: > > On Mon, May 14, 2012 at 3:01 PM, Gregg Tavares (勤) > wrote: > > > >> I'd like to work on exposing something like CANVAS to web workers. > >>

Re: exposing CANVAS or something like it to Web Workers

2012-05-14 Thread
On Mon, May 14, 2012 at 5:12 PM, Boris Zbarsky wrote: > On 5/14/12 8:03 PM, Gregg Tavares (勤) wrote: > >> var canvasSurface = new CanvasSurface(); >> var ctx = canvasSurface.getContext("2d")**; >> var pic = new Picture; >> pic.src = >> "http:/

Re: exposing CANVAS or something like it to Web Workers

2012-05-14 Thread
On Mon, May 14, 2012 at 6:07 PM, Boris Zbarsky wrote: > On 5/14/12 8:55 PM, Gregg Tavares (勤) wrote: > >>1) Various canvas 2d context methods depend on the styles of the >>canvas to define how they actually behave. Clearly this would need >>some sort of ch

Re: exposing CANVAS or something like it to Web Workers

2012-05-14 Thread
On Mon, May 14, 2012 at 6:23 PM, Jonas Sicking wrote: > On Mon, May 14, 2012 at 5:10 PM, Charles Pritchard > wrote: > > On May 14, 2012, at 4:42 PM, Jonas Sicking wrote: > > > >> On Mon, May 14, 2012 at 3:28 PM, Glenn Maynard wrote: > >>> On Mon, Ma

Re: exposing CANVAS or something like it to Web Workers

2012-05-16 Thread
So how to take this forward? My #1 priority is to get WebGL in workers. Lots of developers have expressed a need for this from decoding compressed textures in a worker to offloading thousands of draw calls per frame to a worker. WebGL already defines sharing mechanisms so at least for the WebGL ca

Re: exposing CANVAS or something like it to Web Workers

2012-05-16 Thread
On Wed, May 16, 2012 at 12:42 PM, Kenneth Russell wrote: > On Wed, May 16, 2012 at 12:30 PM, Gregg Tavares (勤) > wrote: > > So how to take this forward? > > > > My #1 priority is to get WebGL in workers. Lots of developers have > expressed > > a need for this