W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2012

[whatwg] [canvas] request for {create, get, put}ImageDataHD and ctx.backingStorePixelRatio

From: Oliver Hunt <oliver@apple.com>
Date: Mon, 16 Apr 2012 13:45:49 -0700
Message-ID: <00A48A8A-D194-454D-BFCF-2D57A4D5C720@apple.com>

On Apr 16, 2012, at 11:07 AM, Darin Fisher <darin at chromium.org> wrote:
> 
> See synchronous XMLHttpRequest.  I'm sure every browser vendor wishes that
> didn't exist.  Note how we recently withdrew support for synchronous
> ArrayBuffer access on XHR?  We did this precisely to discourage use of
> synchronous mode XHR. Doing so actually broke some existing web pages.  The
> pain was deemed worth it.

Yes, but the reason for this is very simple: synchronous IO can take a literally interminable amount of time, in which nothing else can happen.  We're talking about something entirely client side, that is theoretically going to be done sufficiently quickly to update a frame.

The IO case has a best case of hundreds of milliseconds, whereas that is likely to be close to the worst case on the graphics side.

--Oliver
Received on Monday, 16 April 2012 13:45:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:07 GMT