DescriptionSpeed up generateImage by re-using the outline/bitmap that has already been loaded.
SkDrawText need to query both glyph metrics and image in most cases. But to query metrics and image separately will duplicate the work to load glyph outline which is time consuming especially for composite glyphs.
This patch record what is in the FreeType glyph slot and tries to re-use it. It get about 15% speed increasment with bench case fontscaler_lcd and fontscaler_aa (should be better for composite glyphs)
BUG=
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|