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

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

Issue 2471153002: [scheduler] Use Finch to control background throttling. (Closed)
Patch Set: Rebased 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/WebViewImpl.h
diff --git a/third_party/WebKit/Source/web/WebViewImpl.h b/third_party/WebKit/Source/web/WebViewImpl.h
index d7b4643dfd8c589f14b37a752b394bda025bfda6..1246fa977620e3c7ea7e008c7ff326d47c4185e6 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 WebScheduler::WebSchedulerSettings {
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;
+ // WebScheduler::WebSchedulerSettings 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;
+ std::unique_ptr<WebViewScheduler> m_scheduler;
double m_lastFrameTimeMonotonic;

Powered by Google App Engine
This is Rietveld 408576698