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

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

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
Index: third_party/WebKit/Source/web/WebSettingsImpl.h
diff --git a/third_party/WebKit/Source/web/WebSettingsImpl.h b/third_party/WebKit/Source/web/WebSettingsImpl.h
index a1b69c10edc98f0e4a48a812ea36f94e603cad83..dab96e4f555d098f54c44b55ecdad7859c11a28f 100644
--- a/third_party/WebKit/Source/web/WebSettingsImpl.h
+++ b/third_party/WebKit/Source/web/WebSettingsImpl.h
@@ -203,6 +203,10 @@ class WEB_EXPORT WebSettingsImpl final
void setWebSecurityEnabled(bool) override;
void setWideViewportQuirkEnabled(bool) override;
void setXSSAuditorEnabled(bool) override;
+ void setExpensiveBackgroundThrottlingCPUBudget(float) override;
+ void setExpensiveBackgroundThrottlingInitialBudget(float) override;
+ void setExpensiveBackgroundThrottlingMaxBudget(float) override;
+ void setExpensiveBackgroundThrottlingMaxDelay(float) override;
bool showFPSCounter() const { return m_showFPSCounter; }
bool showPaintRects() const { return m_showPaintRects; }
@@ -227,6 +231,18 @@ class WEB_EXPORT WebSettingsImpl final
bool clobberUserAgentInitialScaleQuirk() const {
return m_clobberUserAgentInitialScaleQuirk;
}
+ float expensiveBackgroundThrottlingCPUBudget() const {
+ return m_expensiveBackgroundThrottlingCPUBudget;
+ }
+ float expensiveBackgroundThrottlingInitialBudget() const {
+ return m_expensiveBackgroundThrottlingInitialBudget;
+ }
+ float expensiveBackgroundThrottlingMaxDelay() const {
+ return m_expensiveBackgroundThrottlingMaxDelay;
+ }
+ float expensiveBackgroundThrottlingMaxBudget() const {
+ return m_expensiveBackgroundThrottlingMaxBudget;
+ }
void setMockGestureTapHighlightsEnabled(bool);
bool mockGestureTapHighlightsEnabled() const;
@@ -253,6 +269,10 @@ class WEB_EXPORT WebSettingsImpl final
// the Android SDK prior to and including version 18. Presumably, this
// can be removed any time after 2015. See http://crbug.com/313754.
bool m_clobberUserAgentInitialScaleQuirk;
+ float m_expensiveBackgroundThrottlingCPUBudget;
+ float m_expensiveBackgroundThrottlingInitialBudget;
+ float m_expensiveBackgroundThrottlingMaxBudget;
+ float m_expensiveBackgroundThrottlingMaxDelay;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h ('k') | third_party/WebKit/Source/web/WebSettingsImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698