DescriptionIntroduce FontCache content scaling
FontPlatformData stored in FontCache has size-independent backing font
data on non-Mac platform, and can be safely reused for different font
sizes by scaling.
This CL modifies FontCache to reuse a FontPlatformData to different size
of font, so that Blink's layout phase requires smaller number of expensive
synchronous IPCs.
This reduces the first layout time of text-heavy CJK sites on Linux.
E.g. reduces layout time of http://b.hatena.ne. jp/ from 740ms to 515ms,
and https://ja-jp.facebook.com/legal/terms from 453ms to 428ms.
BUG=608650
Committed: https://crrev.com/d9ea08ed34d022152362130ae95f55fbd814a3af
Cr-Commit-Position: refs/heads/master@{#395022}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #
Total comments: 7
Patch Set 6 : +comment #Patch Set 7 : #
Total comments: 1
Patch Set 8 : fix #
Total comments: 2
Patch Set 9 : use UnsignedWithZeroKeyHashTraits #Patch Set 10 : +Finch setup #Patch Set 11 : rebase #Patch Set 12 : win layout test fix #
Total comments: 1
Messages
Total messages: 56 (24 generated)
|