W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2013

Re: [whatwg] Canvas in workers

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 22 Oct 2013 22:44:14 +0200
Message-ID: <CAOp6jLac6Ok2gMz+B2V1TWcEXc4OFXtYtu1gANvanTrmJq+AkA@mail.gmail.com>
To: Kenneth Russell <kbr@google.com>
Cc: WHAT Working Group <whatwg@whatwg.org>, Glenn Maynard <glenn@zewt.org>, Kyle Huey <me@kylehuey.com>
On Tue, Oct 22, 2013 at 7:31 PM, Kenneth Russell <kbr@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 :-).

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  *
Received on Tuesday, 22 October 2013 20:44:39 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:12 UTC