W3C home > Mailing lists > Public > public-html@w3.org > October 2012

RE: [Canvas] proposal for supportsContext

From: Frank Olivier <Frank.Olivier@microsoft.com>
Date: Thu, 25 Oct 2012 16:35:48 +0000
To: Dean Jackson <dino@apple.com>
CC: Travis Leithead <travis.leithead@microsoft.com>, Robin Berjon <robin@w3.org>, "public-html@w3.org" <public-html@w3.org>
Message-ID: <91175A762AB48840AF1473514B26B47552E0DC4B@TK5EX14MBXC261.redmond.corp.microsoft.com>
This has been filed as https://www.w3.org/Bugs/Public/show_bug.cgi?id=19677 

This looks like a reasonable proposal and a good addition to the spec.

-----Original Message-----
From: Dean Jackson [mailto:dino@apple.com] 
Sent: Tuesday, September 11, 2012 10:38 AM
To: Frank Olivier
Cc: Travis Leithead; Robin Berjon; public-html@w3.org
Subject: Re: [Canvas] proposal for supportsContext


On Sep 11, 2012, at 10:14 AM, Frank Olivier <Frank.Olivier@microsoft.com> wrote:

> Why not (internally) defer context creation until the author calls a method that needs an actual context?

That would be extremely problematic. It could be that by the time the user decides to use the context, it is no longer possible to create one (say we've run out of memory). Now they have a non-null defined reference to something that can't exist.

> (This would be somewhat similar to deferring creation of your media engine & codecs until the author calls video.play() )

We try to do that for video as much as possible. It's not as easy at it seems. We nearly always have to fire up our media engine well before the user starts to play. (e.g. to load the metadata, or to decide if we can play the format).

Dean
Received on Thursday, 25 October 2012 16:37:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 25 October 2012 16:37:05 GMT