| 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 c97a9a95ed6b3ccf7fba25d8249fea9ba94658d5..3212eae751e674ba8ba2f7da5b93dc5617ce896b 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) ||
|
|
|