[Public WebGL] using the same context with multiple canvases

Gregg Tavares (社用) [email protected]
Wed Dec 19 01:18:17 PST 2012

On Wed, Dec 19, 2012 at 5:43 PM, Mark Callow <[email protected]>wrote:

>  On 2012/12/19 17:01, Gregg Tavares (社用) wrote:
>  as for commit(), it seems to me it should go on DrawingBuffer as
> that's the object that's deciding if something is swapping buffers
> on commit or copying buffers on commit.
>  Having it on Drawingbuffer also means it can be used in workers
> without a canvas.
>     Why would you need commit in this case? Isn't its function purely to
> display the drawing buffer contents in the canvas?

You're right. I think my number one reason for suggesting that was
because we have this legacy creation parameter ("preserveDrawingbuffer")
to select copy behavior vs swap behavior.

But, for explicit drawingbuffer management that can just move it to the
commit function by passing in a bool where true = swap and false = copy
(or visa versa if we want to default to speed like we did for WebGL)

I guess you could look it as canvas as the frontbuffer and DrawingBuffer
as the um, ... drawingbuffer and that commit() swaps or copies buffers.

So for the Drawingbuffer path the "preserveDrawingbuffer" creation parameter
is not needed.

I guess that suggests commit should be part of Canvas and CanvasProxy

>  Regards
>     -Mark
> --
>  注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合が有ります。正式なメール受信者では無い場合はメール複製、
> 再配信または情報の使用を固く禁じております。エラー、手違いでこのメールを受け取られましたら削除を行い配信者にご連絡をお願いいたし ます.
> NOTE: This electronic mail message may contain confidential and privileged
> information from HI Corporation. If you are not the intended recipient, any
> disclosure, photocopying, distribution or use of the contents of the
> received information is prohibited. If you have received this e-mail in
> error, please notify the sender immediately and permanently delete this
> message and all related copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://khronos.org/pipermail/public_webgl_khronos.org/attachments/20121219/5f46c94f/attachment.html>

More information about the public_webgl mailing list