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

Re: [Canvas] proposal for supportsContext

From: Dean Jackson <dino@apple.com>
Date: Tue, 11 Sep 2012 10:37:35 -0700
Cc: Travis Leithead <travis.leithead@microsoft.com>, Robin Berjon <robin@w3.org>, "public-html@w3.org" <public-html@w3.org>
Message-id: <4AC30CFE-5962-449C-9910-9DDCE143AC29@apple.com>
To: Frank Olivier <Frank.Olivier@microsoft.com>

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 Tuesday, 11 September 2012 17:38:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 September 2012 17:38:03 GMT