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

[whatwg] isPointInPath v. set of pixels in canvas hit regions

From: Edward O'Connor <eoconnor@apple.com>
Date: Thu, 05 Jul 2012 13:05:56 -0700
To: whatwg@lists.whatwg.org
Message-id: <m2y5mydlcr.fsf@eoconnor.apple.com>

As things currently stand in the spec, implementations basically need to
keep N+1 bitmaps per canvas, where N is the number of hit regions. I
doubt any implementors would be enthusiastic to implement hit regions
like this. From a WebKit perspective, we'd much prefer keeping a Path
for each hit region, and then simply using isPointInPath for hit
testing. This also implies that the current piggybacking of "Clear
regions that cover the pixels" in clearRect() could go away. Yay! :)

Received on Thursday, 5 July 2012 20:06:23 UTC

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