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

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

Issue 2471153002: [scheduler] Use Finch to control background throttling. (Closed)
Patch Set: Fix test and address comments Created 4 years, 1 month 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 | « third_party/WebKit/Source/web/WebSettingsImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebSettingsImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebSettingsImpl.cpp b/third_party/WebKit/Source/web/WebSettingsImpl.cpp
index 1ac0f75e98b99cb76ca36ab6e290d8ad003f31b6..65d5d91f138baee4338e6f1e54bd639da4e0abc7 100644
--- a/third_party/WebKit/Source/web/WebSettingsImpl.cpp
+++ b/third_party/WebKit/Source/web/WebSettingsImpl.cpp
@@ -52,7 +52,11 @@ WebSettingsImpl::WebSettingsImpl(Settings* settings,
m_shrinksViewportContentToFit(false),
m_viewportMetaLayoutSizeQuirk(false),
m_viewportMetaNonUserScalableQuirk(false),
- m_clobberUserAgentInitialScaleQuirk(false) {
+ m_clobberUserAgentInitialScaleQuirk(false),
+ m_expensiveBackgroundThrottlingCPUBudget(-1),
+ m_expensiveBackgroundThrottlingInitialBudget(-1),
+ m_expensiveBackgroundThrottlingMaxBudget(-1),
+ m_expensiveBackgroundThrottlingMaxDelay(-1) {
DCHECK(settings);
}
@@ -691,4 +695,23 @@ void WebSettingsImpl::setViewportStyle(WebViewportStyle style) {
m_devToolsEmulator->setViewportStyle(style);
}
+void WebSettingsImpl::setExpensiveBackgroundThrottlingCPUBudget(
+ float cpuBudget) {
+ m_expensiveBackgroundThrottlingCPUBudget = cpuBudget;
+}
+
+void WebSettingsImpl::setExpensiveBackgroundThrottlingInitialBudget(
+ float initialBudget) {
+ m_expensiveBackgroundThrottlingInitialBudget = initialBudget;
+}
+
+void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxBudget(
+ float maxBudget) {
+ m_expensiveBackgroundThrottlingMaxBudget = maxBudget;
+}
+
+void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxDelay(float maxDelay) {
+ m_expensiveBackgroundThrottlingMaxDelay = maxDelay;
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/WebSettingsImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698