[whatwg] Canvas in workers

Robert O'Callahan robert at ocallahan.org
Tue Oct 22 13:44:14 PDT 2013


On Tue, Oct 22, 2013 at 7:31 PM, Kenneth Russell <kbr at google.com> wrote:

> Robert, please don't remove those APIs from your proposal. They're
> needed in order to address known use cases, and splitting them off
> will make it difficult to understand how they interact with
> WorkerCanvas later.
>

Yes, I think it's a good idea to specify a complete set of APIs that fit
together logically and if there are some we don't need, we can remove them
or just delay implementing them until they're needed.

I would like to suggest changing the 'srcObject' property on
> HTMLImageElement into some sort of method taking ImageBitmap as
> argument. If an ImageBitmap had been previously set against the
> HTMLImageElement, the method would automatically call 'close()'
> against it. Fundamentally there should be some easy way to repeatedly
> update the HTMLImageElement without having to query its previous
> ImageBitmap and call close() against it before setting srcObject.
>

Hmm. I'm not sure how this should work.

Maybe instead we should use canvas elements and define
ImageBitmap.transferToCanvas(HTMLCanvasElement). That would mitigate
Glenn's argument about having to change element types too.

Would you consider copying
> https://wiki.mozilla.org/User:Roc/WorkerCanvasProposal to
> http://wiki.whatwg.org/wiki/Category:Proposals so that it's easier to
> collaborate on it?
>

No problem at all. Can you do it? I need to get a WHATWG account :-).

Rob
-- 
Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w  *
*



More information about the whatwg mailing list