[whatwg] [canvas] getContext & multiple contexts
Chris Marrin
cmarrin at apple.com
Tue Aug 3 15:25:54 PDT 2010
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'.
-----
~Chris
cmarrin at apple.com
More information about the whatwg
mailing list