| Index: third_party/WebKit/Source/web/WebViewImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| index 2c685304358d95ccad52de936e3b62ffd660cd0a..57ad9a13f0afb96cb11c5a697bd9330db421b35d 100644
|
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
|
| @@ -435,7 +435,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client,
|
| m_scheduler(wrapUnique(Platform::current()
|
| ->currentThread()
|
| ->scheduler()
|
| - ->createWebViewScheduler(this)
|
| + ->createWebViewScheduler(this, this)
|
| .release())),
|
| m_lastFrameTimeMonotonic(0),
|
| m_overrideCompositorVisibility(false) {
|
| @@ -1098,6 +1098,22 @@ void WebViewImpl::ReportIntervention(const WebString& message) {
|
| mainFrame()->addMessageToConsole(consoleMessage);
|
| }
|
|
|
| +float WebViewImpl::expensiveBackgroundThrottlingCPUBudget() {
|
| + return settingsImpl()->expensiveBackgroundThrottlingCPUBudget();
|
| +}
|
| +
|
| +float WebViewImpl::expensiveBackgroundThrottlingInitialBudget() {
|
| + return settingsImpl()->expensiveBackgroundThrottlingInitialBudget();
|
| +}
|
| +
|
| +float WebViewImpl::expensiveBackgroundThrottlingMaxBudget() {
|
| + return settingsImpl()->expensiveBackgroundThrottlingMaxBudget();
|
| +}
|
| +
|
| +float WebViewImpl::expensiveBackgroundThrottlingMaxDelay() {
|
| + return settingsImpl()->expensiveBackgroundThrottlingMaxDelay();
|
| +}
|
| +
|
| WebInputEventResult WebViewImpl::handleKeyEvent(const WebKeyboardEvent& event) {
|
| DCHECK((event.type == WebInputEvent::RawKeyDown) ||
|
| (event.type == WebInputEvent::KeyDown) ||
|
|
|