Chromium Code Reviews| Index: third_party/WebKit/Source/web/WebViewImpl.h |
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.h b/third_party/WebKit/Source/web/WebViewImpl.h |
| index d7b4643dfd8c589f14b37a752b394bda025bfda6..6abbdacdfcef7e8dc032bd1e1de494aece519d3d 100644 |
| --- a/third_party/WebKit/Source/web/WebViewImpl.h |
| +++ b/third_party/WebKit/Source/web/WebViewImpl.h |
| @@ -100,7 +100,8 @@ class WEB_EXPORT WebViewImpl final |
| public RefCounted<WebViewImpl>, |
| WTF_NON_EXPORTED_BASE(public WebGestureCurveTarget), |
| public PageWidgetEventHandler, |
| - public WebScheduler::InterventionReporter { |
| + public WebScheduler::InterventionReporter, |
| + public WebViewScheduler::WebViewSchedulerSettings { |
| public: |
| static WebViewImpl* create(WebViewClient*, WebPageVisibilityState); |
| static HashSet<WebViewImpl*>& allInstances(); |
| @@ -279,6 +280,12 @@ class WEB_EXPORT WebViewImpl final |
| // WebScheduler::InterventionReporter implementation: |
| void ReportIntervention(const WebString& message) override; |
| + // WebViewScheduler::WebViewSchedulerSettings implementation: |
| + float expensiveBackgroundThrottlingCPUBudget() override; |
| + float expensiveBackgroundThrottlingInitialBudget() override; |
| + float expensiveBackgroundThrottlingMaxBudget() override; |
| + float expensiveBackgroundThrottlingMaxDelay() override; |
| + |
| void didUpdateFullscreenSize(); |
| float defaultMinimumPageScaleFactor() const; |
| @@ -749,7 +756,7 @@ class WEB_EXPORT WebViewImpl final |
| WebPageImportanceSignals m_pageImportanceSignals; |
| - const std::unique_ptr<WebViewScheduler> m_scheduler; |
|
Sami
2016/11/07 16:33:42
Did you mean to change this?
altimin
2016/11/07 17:01:33
It was needed in the first version, not anymore.
|
| + std::unique_ptr<WebViewScheduler> m_scheduler; |
| double m_lastFrameTimeMonotonic; |