Summary: | Canvas2DRenderingContext::setFont() does not need to be slow when repeatedly setting the same font | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Stephen White <senorblanco> | ||||||
Component: | Canvas | Assignee: | Stephen White <senorblanco> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | eric, jamesr, ojan.autocc, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Stephen White
2012-12-13 09:17:30 PST
Created attachment 179284 [details]
Patch
Comment on attachment 179284 [details]
Patch
Seems sound, but do we have any way to validate + track changes like this? Maybe something under PerformanceTests/ ?
Comment on attachment 179284 [details]
Patch
Lgtm too
(In reply to comment #2) > (From update of attachment 179284 [details]) > Seems sound, but do we have any way to validate + track changes like this? Maybe something under PerformanceTests/ ? For now, I've added a ManualTest. Created attachment 179304 [details]
Patch for landing
Comment on attachment 179304 [details] Patch for landing Clearing flags on attachment: 179304 Committed r137630: <http://trac.webkit.org/changeset/137630> All reviewed patches have been landed. Closing bug. Good point about the bug rename. CanvasRenderingContext2D::setFont() is still slow when actually setting fonts. As a (somewhat more involved) followup, it would be nice to cache the mapping between unparsed strings and fonts, if possible. The CSS parser is really slow. |