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

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

From: Charles Pritchard <chuck@jumis.com>
Date: Tue, 20 Mar 2012 14:33:32 -0700
Message-ID: <EA06281E-4A37-49B0-A20A-A4ECBB9CAB4B@jumis.com>
On Mar 20, 2012, at 1:42 PM, Edward O'Connor <eoconnor at apple.com> wrote:

> But now run through this logic when the <canvas> is making a high res
> backing store automatically: by doing the clever thing, you're now
> quadrupling the size of the canvas, and you're paying an exorbitant
> storage cost for doing so.

Which (a): never happens and (b) can be detected via 1x1 pixel canvas.

> You really only want to do the "make it twice as big and then scale it
> down with CSS" trick when backing store pixels are 1:1 to CSS pixels.

I do "tricks" to support browser zoom. They are increments; .5,.7, 1.1, 1.2, 1.3, etc. 

Received on Tuesday, 20 March 2012 14:33:32 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:40 UTC