DescriptionAdded restricted font fallback to custom font collection loader.
After few experiments/crashes it seems that some users have enormous number of fonts in the registry. On suspect that we have for failing to load collection is that direct write cache is unable to load/handle those many fonts. In this CL we are trying to see if we can put arbitrary limit on number of fonts that could be loaded. We also added a fallback mechanism where in if loading from registry fails, we will try to load only default fonts. Definition of 'default' is taken from file prefs_tab_helper.cc ~ kDefaultFonts.
R=ananta,scottmg,cpu
BUG=399233
Committed: https://crrev.com/d4a0b1d5102a0fe01ea29f14c90a28afc87da95c
Cr-Commit-Position: refs/heads/master@{#292573}
Patch Set 1 #Patch Set 2 : Further restricting max number of fonts that we can load, if not we will go to fallback list. #
Total comments: 6
Patch Set 3 : Code review #
Total comments: 4
Messages
Total messages: 17 (0 generated)
|