W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

Re: exposing CANVAS or something like it to Web Workers

From: 勤 <gman@google.com>
Date: Mon, 14 May 2012 18:14:42 -0700
Message-ID: <CAKZ+BNq9LOTx=5-Hcjyr0EQDZdQLpFSv_CFFd2dneDj_S7q3Sw@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-webapps@w3.org
On Mon, May 14, 2012 at 6:07 PM, Boris Zbarsky <bzbarsky@mit.edu> 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 changes for Workers anyway; the question is what those
>>    changes would need to be.
>> Which methods are these?
> Anything involving setting color (e.g. the strokeStyle setter, the
> fillStyle setter), due to "currentColor".  Anything involving text because
> font styles come from the element or document.

Good to know.

That doesn't sound like a showstopper though. If a canvas/CanvasSurface is
available in workers the simplest solution would just be that
"currentColor" defaults to something "black?" or nothing "". Pick one.

> Those are the ones that come to mind offhand, but I haven't looked at the
> various recent additions to the 2d context closely.
> -Boris
Received on Tuesday, 15 May 2012 01:15:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:34 UTC