[whatwg] [2D Canvas] Proposal: Losing and restoring rendering contexts
junov at google.com
Tue Oct 22 07:16:48 PDT 2013
On Tue, Oct 22, 2013 at 3:07 AM, Mark Callow <callow.mark at artspark.co.jp>wrote:
> I say a weak no to the second. Testing can be done with shims and there
> are probably better ways for apps to do resource management.
After doing some digging, I totally agree. I found that the webgl debug
utilities use a shim for testing context losses and it seems to work just
fine for testing web apps.
See makeLostContextSimulatingCanvas defined here:
That exact same pattern could be replicated for 2D canvas and requires no
additional APIs from the browser.
As far as testing the browser is concerned, implementers can easily add
private APIs to test harnesses, so it is a non-issue.
I think we can close that issue now.
Thanks for the feedback.
More information about the whatwg