Update features.cc

This commit is contained in:
Alexander David Frick 2022-04-07 10:26:32 -05:00 committed by GitHub
parent 5d586456b7
commit d49a50a26a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1361,6 +1361,12 @@ const base::Feature kWindowPlacementFullscreenOnScreensChange{
// TODO(crbug.com/1277431): This flag should be eventually disabled.
const base::Feature kEventPath{"EventPath", base::FEATURE_ENABLED_BY_DEFAULT};
// Removes a paint invalidation of viewport constrained objects (sticky or
// fixed) after scrolling.
const base::Feature kOptimizeViewportConstrainedPaintInvalidation{
"OptimizeViewportConstrainedPaintInvalidation",
base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kReduceUserAgentMinorVersion{
"ReduceUserAgentMinorVersion", base::FEATURE_DISABLED_BY_DEFAULT};
@ -1387,5 +1393,22 @@ const base::Feature kWebSQLAccess{"kWebSQLAccess",
const base::Feature kUACHOverrideBlank{"UACHOverrideBlank",
base::FEATURE_DISABLED_BY_DEFAULT};
#if BUILDFLAG(IS_WIN)
const base::Feature kPrewarmDefaultFontFamilies{
"PrewarmDefaultFontFamilies", base::FEATURE_DISABLED_BY_DEFAULT};
const base::FeatureParam<bool> kPrewarmStandard = {&kPrewarmDefaultFontFamilies,
"prewarm_standard", true};
const base::FeatureParam<bool> kPrewarmFixed = {&kPrewarmDefaultFontFamilies,
"prewarm_fixed", true};
const base::FeatureParam<bool> kPrewarmSerif = {&kPrewarmDefaultFontFamilies,
"prewarm_serif", true};
const base::FeatureParam<bool> kPrewarmSansSerif = {
&kPrewarmDefaultFontFamilies, "prewarm_sans_serif", true};
const base::FeatureParam<bool> kPrewarmCursive = {&kPrewarmDefaultFontFamilies,
"prewarm_cursive", true};
const base::FeatureParam<bool> kPrewarmFantasy = {&kPrewarmDefaultFontFamilies,
"prewarm_fantasy", true};
#endif
} // namespace features
} // namespace blink