Commit 2eb499bd authored by Philip Rogers's avatar Philip Rogers Committed by Commit Bot

Remove the FastBorderRadius flag

This has shipped and the associated flags can be removed.

Bug: 967076
Change-Id: Ieccdce6cf8daece164047046be06f87c2a146676
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1982659
Commit-Queue: Philip Rogers <pdr@chromium.org>
Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Reviewed-by: default avatarCharlie Reis <creis@chromium.org>
Reviewed-by: default avatarIlya Sherman <isherman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#728085}
parent 18d0908c
...@@ -334,8 +334,6 @@ void SetRuntimeFeaturesFromChromiumFeatures() { ...@@ -334,8 +334,6 @@ void SetRuntimeFeaturesFromChromiumFeatures() {
// function and using feature string name with EnableFeatureFromString. // function and using feature string name with EnableFeatureFromString.
const RuntimeFeatureToChromiumFeatureMap<const char*> const RuntimeFeatureToChromiumFeatureMap<const char*>
runtimeFeatureNameToChromiumFeatureMapping[] = { runtimeFeatureNameToChromiumFeatureMapping[] = {
{"FastBorderRadius", blink::features::kFastBorderRadius,
kUseFeatureState},
{"FontSrcLocalMatching", features::kFontSrcLocalMatching, {"FontSrcLocalMatching", features::kFontSrcLocalMatching,
kUseFeatureState}, kUseFeatureState},
{"LegacyWindowsDWriteFontFallback", {"LegacyWindowsDWriteFontFallback",
...@@ -547,7 +545,6 @@ void SetCustomizedRuntimeFeaturesFromCombinedArgs( ...@@ -547,7 +545,6 @@ void SetCustomizedRuntimeFeaturesFromCombinedArgs(
WebRuntimeFeatures::EnableNetInfoDownlinkMax(true); WebRuntimeFeatures::EnableNetInfoDownlinkMax(true);
WebRuntimeFeatures::EnableFetchMetadata(true); WebRuntimeFeatures::EnableFetchMetadata(true);
WebRuntimeFeatures::EnableFetchMetadataDestination(true); WebRuntimeFeatures::EnableFetchMetadataDestination(true);
WebRuntimeFeatures::EnableFeatureFromString("FastBorderRadius", true);
WebRuntimeFeatures::EnableDisplayLocking(true); WebRuntimeFeatures::EnableDisplayLocking(true);
} }
......
...@@ -2616,25 +2616,6 @@ ...@@ -2616,25 +2616,6 @@
] ]
} }
], ],
"FastBorderRadius": [
{
"platforms": [
"android",
"chromeos",
"linux",
"mac",
"windows"
],
"experiments": [
{
"name": "Enabled",
"enable_features": [
"FastBorderRadius"
]
}
]
}
],
"FilterAdsOnAbusiveSites": [ "FilterAdsOnAbusiveSites": [
{ {
"platforms": [ "platforms": [
......
...@@ -58,11 +58,6 @@ const base::Feature kAssumeOverlapAfterFixedOrStickyPosition{ ...@@ -58,11 +58,6 @@ const base::Feature kAssumeOverlapAfterFixedOrStickyPosition{
const base::Feature kDisplayLocking{"DisplayLocking", const base::Feature kDisplayLocking{"DisplayLocking",
base::FEATURE_DISABLED_BY_DEFAULT}; base::FEATURE_DISABLED_BY_DEFAULT};
// Enable applying rounded corner masks via a GL shader rather than
// a mask layer.
const base::Feature kFastBorderRadius{"FastBorderRadius",
base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kJSONModules{"JSONModules", const base::Feature kJSONModules{"JSONModules",
base::FEATURE_DISABLED_BY_DEFAULT}; base::FEATURE_DISABLED_BY_DEFAULT};
......
...@@ -30,7 +30,6 @@ BLINK_COMMON_EXPORT extern const base::Feature kCSSOMViewScrollCoordinates; ...@@ -30,7 +30,6 @@ BLINK_COMMON_EXPORT extern const base::Feature kCSSOMViewScrollCoordinates;
BLINK_COMMON_EXPORT extern const base::Feature kDisplayLocking; BLINK_COMMON_EXPORT extern const base::Feature kDisplayLocking;
BLINK_COMMON_EXPORT extern const base::Feature BLINK_COMMON_EXPORT extern const base::Feature
kAssumeOverlapAfterFixedOrStickyPosition; kAssumeOverlapAfterFixedOrStickyPosition;
BLINK_COMMON_EXPORT extern const base::Feature kFastBorderRadius;
BLINK_COMMON_EXPORT extern const base::Feature kJSONModules; BLINK_COMMON_EXPORT extern const base::Feature kJSONModules;
BLINK_COMMON_EXPORT extern const base::Feature kLayoutNG; BLINK_COMMON_EXPORT extern const base::Feature kLayoutNG;
BLINK_COMMON_EXPORT extern const base::Feature kMixedContentAutoupgrade; BLINK_COMMON_EXPORT extern const base::Feature kMixedContentAutoupgrade;
......
...@@ -794,9 +794,6 @@ void PropertyTreeManager::ForceRenderSurfaceIfSyntheticRoundedCornerClip( ...@@ -794,9 +794,6 @@ void PropertyTreeManager::ForceRenderSurfaceIfSyntheticRoundedCornerClip(
bool PropertyTreeManager::SupportsShaderBasedRoundedCorner( bool PropertyTreeManager::SupportsShaderBasedRoundedCorner(
const ClipPaintPropertyNode& clip, const ClipPaintPropertyNode& clip,
PropertyTreeManager::CcEffectType type) { PropertyTreeManager::CcEffectType type) {
if (!RuntimeEnabledFeatures::FastBorderRadiusEnabled())
return false;
if (type & CcEffectType::kSyntheticFor2dAxisAlignment) if (type & CcEffectType::kSyntheticFor2dAxisAlignment)
return false; return false;
...@@ -815,11 +812,10 @@ bool PropertyTreeManager::SupportsShaderBasedRoundedCorner( ...@@ -815,11 +812,10 @@ bool PropertyTreeManager::SupportsShaderBasedRoundedCorner(
return false; return false;
} }
// Rounded corners that differ are not supported by the // Rounded corners that differ are not supported by the CALayerOverlay system
// CALayerOverlay system on Mac. Instead of letting it fall back // on Mac. Instead of letting it fall back to the (worse for memory and
// to the (worse for memory and battery) non-CALayerOverlay system // battery) non-CALayerOverlay system for such cases, fall back to a
// for such cases, fall back to a non-fast border-radius mask for // non-shader border-radius mask for the effect node.
// the effect node.
#if defined(OS_MACOSX) #if defined(OS_MACOSX)
if (radii.TopLeft() != radii.TopRight() || if (radii.TopLeft() != radii.TopRight() ||
radii.TopLeft() != radii.BottomRight() || radii.TopLeft() != radii.BottomRight() ||
......
...@@ -700,10 +700,6 @@ ...@@ -700,10 +700,6 @@
{ {
name: "FallbackCursorMode", name: "FallbackCursorMode",
}, },
{
name: "FastBorderRadius",
status: "experimental",
},
{ {
name: "FeaturePolicyForClientHints", name: "FeaturePolicyForClientHints",
status: "experimental", status: "experimental",
......
...@@ -11,23 +11,17 @@ ...@@ -11,23 +11,17 @@
namespace blink { namespace blink {
enum { enum { kCompositeAfterPaint = 1 << 0, kUnderInvalidationChecking = 1 << 1 };
kCompositeAfterPaint = 1 << 0,
kUnderInvalidationChecking = 1 << 1,
kFastBorderRadius = 1 << 2
};
class PaintTestConfigurations class PaintTestConfigurations
: public testing::WithParamInterface<unsigned>, : public testing::WithParamInterface<unsigned>,
private ScopedCompositeAfterPaintForTest, private ScopedCompositeAfterPaintForTest,
private ScopedPaintUnderInvalidationCheckingForTest, private ScopedPaintUnderInvalidationCheckingForTest {
private ScopedFastBorderRadiusForTest {
public: public:
PaintTestConfigurations() PaintTestConfigurations()
: ScopedCompositeAfterPaintForTest(GetParam() & kCompositeAfterPaint), : ScopedCompositeAfterPaintForTest(GetParam() & kCompositeAfterPaint),
ScopedPaintUnderInvalidationCheckingForTest(GetParam() & ScopedPaintUnderInvalidationCheckingForTest(
kUnderInvalidationChecking), GetParam() & kUnderInvalidationChecking) {}
ScopedFastBorderRadiusForTest(GetParam() & kFastBorderRadius) {}
~PaintTestConfigurations() { ~PaintTestConfigurations() {
// Must destruct all objects before toggling back feature flags. // Must destruct all objects before toggling back feature flags.
WebHeap::CollectAllGarbageForTesting(); WebHeap::CollectAllGarbageForTesting();
...@@ -42,10 +36,10 @@ class PaintTestConfigurations ...@@ -42,10 +36,10 @@ class PaintTestConfigurations
INSTANTIATE_TEST_SUITE_P(All, test_class, \ INSTANTIATE_TEST_SUITE_P(All, test_class, \
::testing::Values(kCompositeAfterPaint)) ::testing::Values(kCompositeAfterPaint))
// TODO(pdr): Remove this in favor of INSTANTIATE_PAINT_TEST_SUITE_P.
#define INSTANTIATE_LAYER_LIST_TEST_SUITE_P(test_class) \ #define INSTANTIATE_LAYER_LIST_TEST_SUITE_P(test_class) \
INSTANTIATE_TEST_SUITE_P( \ INSTANTIATE_TEST_SUITE_P(All, test_class, \
All, test_class, \ ::testing::Values(0, kCompositeAfterPaint))
::testing::Values(0, kCompositeAfterPaint, kFastBorderRadius))
#define INSTANTIATE_SCROLL_HIT_TEST_SUITE_P(test_class) \ #define INSTANTIATE_SCROLL_HIT_TEST_SUITE_P(test_class) \
INSTANTIATE_TEST_SUITE_P(All, test_class, \ INSTANTIATE_TEST_SUITE_P(All, test_class, \
......
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