Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Unified Diff: content/child/runtime_features.cc

Issue 2912403003: Add a feature for not compositing small scrollers (Closed)
Patch Set: Use uppercase-initial format for RuntimeEnabledFeature due to another patch that was landed earlier… Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index e2c64faa42a95e97621bc976505f9ece86c12695..0e25b680b06af68f3f37f46ee9fd34054246bac7 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -349,6 +349,9 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
WebRuntimeFeatures::EnableFeatureFromString("CompositeOpaqueScrollers",
false);
+ if (base::FeatureList::IsEnabled(features::kSkipCompositingSmallScrollers))
+ WebRuntimeFeatures::EnableSkipCompositingSmallScrollers(true);
+
if (base::FeatureList::IsEnabled(features::kGenericSensor))
WebRuntimeFeatures::EnableGenericSensor(true);
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698