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

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

Issue 2294253002: scheduler: Throttle timers in out-of-view frames (Closed)
Patch Set: Created 4 years, 4 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 a51c1ff626f4adafb40ae691a74bbd995477d4d5..689ccc5bef43bec652b4cd9e460a0cec020024a4 100644
--- a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
+++ b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
@@ -375,6 +375,11 @@ void WebRuntimeFeatures::enableTimerThrottlingForBackgroundTabs(bool enable)
RuntimeEnabledFeatures::setTimerThrottlingForBackgroundTabsEnabled(enable);
}
+void WebRuntimeFeatures::enableTimerThrottlingForHiddenFrames(bool enable)
+{
+ RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable);
+}
+
void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(bool enable)
{
RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(enable);

Powered by Google App Engine
This is Rietveld 408576698