| 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
|
|
|