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

Unified Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp

Issue 2345483002: [scheduler] Throttle background frames with 1% CPU limit (Closed)
Patch Set: Rebased Created 4 years, 2 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
Index: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
diff --git a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
index 3ec99f8cfd940df1b3938121f2acd4828bc49b1e..9b4650349178a3e134a1e13a0573a48947f0af7f 100644
--- a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
+++ b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
@@ -320,6 +320,10 @@ void WebRuntimeFeatures::enableRenderingPipelineThrottling(bool enable) {
RuntimeEnabledFeatures::setRenderingPipelineThrottlingEnabled(enable);
}
+void WebRuntimeFeatures::enableExpensiveBackgroundTimerThrottling(bool enable) {
+ RuntimeEnabledFeatures::setExpensiveBackgroundTimerThrottlingEnabled(enable);
+}
+
void WebRuntimeFeatures::enableRootLayerScrolling(bool enable) {
RuntimeEnabledFeatures::setRootLayerScrollingEnabled(enable);
}

Powered by Google App Engine
This is Rietveld 408576698