Add tiles memory config flag

This commit is contained in:
Alexander David Frick 2022-02-11 14:14:58 -06:00 committed by GitHub
parent 063f8e9b0a
commit c0fad6575e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
// Copyright 2022 The Chromium Authors. All rights reserved.
// Copyright 2022 The Chromium Authors and Alex313031. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@ -272,7 +272,7 @@ bool IsFencedFramesMPArchBased() {
}
const base::Feature kInitialNavigationEntry{"InitialNavigationEntry",
base::FEATURE_ENABLED_BY_DEFAULT};
base::FEATURE_DISABLED_BY_DEFAULT};
bool IsInitialNavigationEntryEnabled() {
return base::FeatureList::IsEnabled(blink::features::kInitialNavigationEntry);
@ -1192,7 +1192,7 @@ const base::Feature kOriginAgentClusterDefaultEnabled{
"OriginAgentClusterDefaultEnable", base::FEATURE_DISABLED_BY_DEFAULT};
const base::Feature kOriginAgentClusterDefaultWarning{
"OriginAgentClusterDefaultWarning", base::FEATURE_DISABLED_BY_DEFAULT};
"OriginAgentClusterDefaultWarning", base::FEATURE_ENABLED_BY_DEFAULT};
// Allow third-party delegation of client hint information.
const base::Feature kClientHintThirdPartyDelegation{
@ -1232,5 +1232,13 @@ const base::Feature kElementSuperRareData{"ElementSuperRareData",
const base::Feature kClientHintsPartitionedCookies{
"ClientHintsPartitionedCookies", base::FEATURE_DISABLED_BY_DEFAULT};
// If enabled, the memory limit used for tiles is scaled by
// `kScaleTileMemoryLimitFactor`.
const base::Feature kScaleTileMemoryLimit{"ScaleTileMemoryLimit",
base::FEATURE_ENABLED_BY_DEFAULT};
const base::FeatureParam<double> kScaleTileMemoryLimitFactor{
&kScaleTileMemoryLimit, "Factor", 1.0};
} // namespace features
} // namespace blink