Commit d5197fdc authored by Xiaocheng Hu's avatar Xiaocheng Hu Committed by Commit Bot

Add a new Chromium feature for partial style recalc after font loading

This patch adds a new Chromium feature to control the Blink runtime
enabled feature CSSReducedFontLoadingInvalidations. This allows us to
study performance impacts of the feature via finch experiments.

Bug: 441925
Change-Id: Icba6f1f1899af0bcecc12cf570786a07364f4fab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2040616Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738864}
parent d9756248
...@@ -358,6 +358,9 @@ void SetRuntimeFeaturesFromChromiumFeatures() { ...@@ -358,6 +358,9 @@ void SetRuntimeFeaturesFromChromiumFeatures() {
kEnableOnly}, kEnableOnly},
{"HTMLImports", blink::features::kWebComponentsV0Enabled, {"HTMLImports", blink::features::kWebComponentsV0Enabled,
kEnableOnly}, kEnableOnly},
{"CSSReducedFontLoadingInvalidations",
blink::features::kCSSReducedFontLoadingInvalidations,
kUseFeatureState},
}; };
for (const auto& mapping : runtimeFeatureNameToChromiumFeatureMapping) { for (const auto& mapping : runtimeFeatureNameToChromiumFeatureMapping) {
......
...@@ -453,5 +453,8 @@ const base::Feature kLowLatencyWebGLSwapChain{"LowLatencyWebGLSwapChain", ...@@ -453,5 +453,8 @@ const base::Feature kLowLatencyWebGLSwapChain{"LowLatencyWebGLSwapChain",
const base::Feature kForceExtraRenderingToTrackStickyFrame{ const base::Feature kForceExtraRenderingToTrackStickyFrame{
"ForceExtraRenderingToTrackStickyFrame", base::FEATURE_DISABLED_BY_DEFAULT}; "ForceExtraRenderingToTrackStickyFrame", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kCSSReducedFontLoadingInvalidations{
"CSSReducedFontLoadingInvalidations", base::FEATURE_DISABLED_BY_DEFAULT};
} // namespace features } // namespace features
} // namespace blink } // namespace blink
...@@ -146,6 +146,9 @@ BLINK_COMMON_EXPORT extern const base::Feature kLowLatencyWebGLSwapChain; ...@@ -146,6 +146,9 @@ BLINK_COMMON_EXPORT extern const base::Feature kLowLatencyWebGLSwapChain;
BLINK_COMMON_EXPORT extern const base::Feature BLINK_COMMON_EXPORT extern const base::Feature
kForceExtraRenderingToTrackStickyFrame; kForceExtraRenderingToTrackStickyFrame;
BLINK_COMMON_EXPORT extern const base::Feature
kCSSReducedFontLoadingInvalidations;
} // namespace features } // namespace features
} // namespace blink } // namespace blink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment