Chromium Code Reviews
DescriptionRenderText: Don't default-construct gfx::Fonts unnecessarily
The default constructor for gfx::Font is expensive. Don't use it when
creating text runs. Instead, reference an existing font.
RenderTextMac doesn't need the gfx::Font at all, so just retain the
CTFont on the run, since constructing a gfx::Font from an NSFont is also
expensive.
BUG=605131
Committed: https://crrev.com/45d205ff3d72b742b3c3d16c66d6074800e86baf
Cr-Commit-Position: refs/heads/master@{#390556}
Patch Set 1 #Patch Set 2 : remove gfx::Font from RTM completely #
Messages
Total messages: 11 (6 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||