Re: [whatwg] High-density canvases

On Fri, Jun 20, 2014 at 2:54 AM, Stephen White <senorblanco@chromium.org>
wrote:

> I assume that the size change event would fire:
>
>    - on browser page zoom
>    - on pinch-zoom
>    - when a CSS animation (e.g., scale) changes the canvas size in CSS
>    pixels
>
> For browsers that implement the latter two off the main thread, perhaps
> they should only fire at end-of-gesture or end-of-animation, to avoid the
> rendered size being out-of-sync with scaled size by the time the canvas
> gets composited.
>

We should queue a task to fire the event every time the attributes change.
The question is when the attributes should change.

I think we should leave some flexibility here for the UA both for
controlling the timing and exact values of the attributes. For example, it
would be reasonable for a UA to change the device pixel size attributes
exactly when it re-rasterizes the surrounding Web content, and set the
canvas device pixel size to match the pixel size at which the canvas'
content-rect would be rasterized (if it had a solid color background, say).
That's the way I'd want to implement this in Gecko. But the timing and
rasterized resolution are controlled by quite complex algorithms. So I'm
not sure what normative text to put in the spec.

I agree with Mark that the names need work.
>

I don't care what the name is as long as we reach a consensus and stick to
it :-).

Rob
-- 
Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w

Received on Thursday, 19 June 2014 23:02:48 UTC