- From: Maciej Stachowiak <mjs@apple.com>
- Date: Sun, 19 Aug 2012 21:43:43 -0700
- To: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
- Cc: Rik Cabanier <cabanier@adobe.com>, Charles Pritchard <chuck@jumis.com>, Leonard Rosenthol <lrosenth@adobe.com>, Chaals McCathieNevile <w3b@chaals.com>, "public-html@w3.org" <public-html@w3.org>
On Aug 19, 2012, at 8:39 PM, Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com> wrote: > >> Wouldn’t it be better to just keep the paths? > > Dunno. What's the practical difference between keeping a path and > keeping a bitmap described by a path? Here's a few differences: - Paths are likely more memory-efficient in common cases - Paths can handle regions that have sub-pixel accuracy relative to the canvas backing store (so hit testing can be precise when zoomed) - Paths can plausibly handle a model where removing the topmost hit region reveals the one underneath, rather than clearing, which is more often what is desired (though you listed that as an intentional non-goal). Regards, Maciej
Received on Monday, 20 August 2012 04:43:41 UTC