W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] [canvas] getContext & multiple contexts

From: Chris Marrin <cmarrin@apple.com>
Date: Tue, 03 Aug 2010 15:25:54 -0700
Message-ID: <52261811-47CC-4F65-AF96-8A3B9117CEBD@apple.com>

On Aug 3, 2010, at 3:15 PM, Chris Marrin wrote:

> On Aug 2, 2010, at 3:16 PM, Ian Hickson wrote:
>> On Thu, 29 Apr 2010, Vladimir Vukicevic wrote:
>>> A while ago questions came up in the WebGL WG about using a canvas with 
>>> multiple rendering contexts, and synchronization issues that arise 
>>> there. Here's our suggested change to getContext.
>> This seems overly complex. I've gone for a somewhat simpler approach, 
>> which basically makes <canvas> fail getContext() if you call it with a 
>> context that isn't "compatible" with the last one that was used, as 
>> defined by a registry of contexts types. Currently, only '2d' and '3d' are 
>> defined in this registry, and they are not defined as compatible.
> '3d'? We're calling it 'webgl'. Is there another 3D context registered somewhere? I don't have a problem with this simplification.

Sorry, in rereading this I realize that the last statement is confusing. I don't have a problem with hixie's simplification on when to fail getContext. The string passed for a WebGL context should be 'webgl', not '3d'.

cmarrin at apple.com
Received on Tuesday, 3 August 2010 15:25:54 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:25 UTC