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

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

Issue 2023033003: scheduler: Throttle timers in out-of-view frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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 95f8bd603325c3bb85c71155dda5ab1f3c7df9de..80f5599061f8dbfe675d5115bb7609ef0a941360 100644
--- a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
+++ b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
@@ -380,6 +380,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