Canvas2DRenderingContext::setFont() is slow
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.