W3C home > Mailing lists > Public > public-fx@w3.org > October to December 2014

Re: [geometry] Expose DOMPoint, DOMRect, DOMMatrix to Workers

From: Rik Cabanier <cabanier@gmail.com>
Date: Wed, 1 Oct 2014 11:30:12 -0700
Message-ID: <CAGN7qDA3+2AX+dqHdonRE4oXSuqh=kXxegEDtg+=SPJTB+XeFg@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: FX <public-fx@w3.org>, Dirk Schulze <dschulze@adobe.com>
On Wed, Oct 1, 2014 at 3:08 AM, Simon Pieters <simonp@opera.com> wrote:

> On Wed, 01 Oct 2014 09:30:22 +0200, Dirk Schulze <dschulze@adobe.com>
> wrote:
>
>  Hi,
>>
>> I plan to expose the interfaces DOMPoint, DOMRect, DOMMatrix and the
>> readonly pendants to Workers as well. Currently they are just exposed to
>> Window and therefore can’t be created in Workers. There is no need for this
>> limitation. Any objections?
>>
>
> What is the use case?
>

We want to make more API's available in workers (ie canvas workers) so we
need  primitives such as these supported there as well.


> You should also make them cloneable and/or transferable (whichever is
> appropriate) if you do that.
>
> https://html.spec.whatwg.org/multipage/infrastructure.html#
> safe-passing-of-structured-data
>
> (That might be moved to the ES spec at some point,
> http://wiki.ecmascript.org/doku.php?id=strawman:structured_clone )


Is it really necessary to make them transferable? It seems that it's easy
enough to use the stringifier to accomplish this.
Received on Wednesday, 1 October 2014 18:30:40 UTC

This archive was generated by hypermail 2.3.1 : Monday, 22 June 2015 03:33:53 UTC