[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] WebGL in Workers
- To: Boris Zbarsky <bzbarsky@mit.edu>
- Subject: Re: [Public WebGL] WebGL in Workers
- From: Kenneth Russell <kbr@google.com>
- Date: Fri, 4 May 2012 17:18:21 -0700
- Cc: "Gregg Tavares (勤)" <gman@google.com>, Glenn Maynard <glenn@zewt.org>, public webgl <public_webgl@khronos.org>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-system-of-record; bh=1gfZqoXNOGgIx3e0Q33qkkTYyoRPc4G9kj3uNNV9UWA=; b=ps8H1aLu418nWZEbiqjBQbfL8IMteFmORNtjfj8qMpggSq03ADxV1FDHEmuEIGhqz6 hiRaYURdTDZzn51G3epO9bwmtlN+B08ybj9jt7W6qnkG9/eoeDUWq4UUPPfGxqyDXh5M p0W8hF9NkNZapDKQpHlm/ycdfSF3HqQq/9vEQgXhY9IVMB3SJo9Sz477mf5Z/Ky/scMf 9Kt88Qqobecze/p165niiEhbc3n2D7urWg3cMQhYoO5hces5FDLpbLppmL7EbPKSJzKG eBsHqYzUc3xd66Tl7FHgZD+aSaje8zdP9Fb7pf5mFWs/SFFsXrwN/vdS2/KbMB2id59o Xycw==
- In-reply-to: <4FA35B7E.1050302@mit.edu>
- List-id: Public WebGL Mailing List <public_webgl.khronos.org>
- References: <CAKZ+BNphZepJNtfOevpTxgekt949P9-ihZUpCmJ=ttg2W8fU3w@mail.gmail.com> <4FA35B7E.1050302@mit.edu>
- Sender: owner-public_webgl@khronos.org
On Thu, May 3, 2012 at 9:30 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>
> On 5/3/12 11:59 PM, Gregg Tavares (勤) wrote:
>>
>> On Thu, May 3, 2012 at 8:53 PM, Boris Zbarsky <bzbarsky@mit.edu
>> <mailto:bzbarsky@mit.edu>> wrote:
>> Alternately, in the interests of efficiency, we could make it
>> possible to pass an HTMLImageElement to a worker and get an opaque
>> thing that represents its data (actual data plus format information)
>> to avoid forcing conversions to RGBA.
>>
>> Another alternative, Add "Picture" which would be Image minus the
>> HTMLElement parts
>
>
> That's basically my "Alternately" proposal quoted above, yes. I just
> realized, rereading it, that it was unclear. The idea was that you'd pass
> the HTMLImageElement to postMessage on the web page side and the Picture, as
> you call it, would hang off the message event on the worker side.
Rather than having special-purpose handling for HTMLImageElement in
postMessage, wouldn't it make sense to make Gregg's refactoring of the
"guts" into Picture explicit in the API? Then Picture could be made
Transferable, and semantics of "giving" it to a Web Worker would be
easy to define.
-Ken
-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------