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

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

Issue 2471153002: [scheduler] Use Finch to control background throttling. (Closed)
Patch Set: Addressed comments from alexclarke@ 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.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 9faff29cc1d9fd8146e0e7018a8816800c5b7f8c..f4c2d45898327e2cfbb919c46a8bae7eaeacd3ab 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -432,11 +432,6 @@ WebViewImpl::WebViewImpl(WebViewClient* client,
m_displayMode(WebDisplayModeBrowser),
m_elasticOverscroll(FloatSize()),
m_mutator(nullptr),
- m_scheduler(wrapUnique(Platform::current()
- ->currentThread()
- ->scheduler()
- ->createWebViewScheduler(this)
- .release())),
m_lastFrameTimeMonotonic(0),
m_overrideCompositorVisibility(false) {
Page::PageClients pageClients;
@@ -461,12 +456,16 @@ WebViewImpl::WebViewImpl(WebViewClient* client,
StorageNamespaceController::provideStorageNamespaceTo(*m_page,
&m_storageClientImpl);
+ m_devToolsEmulator = DevToolsEmulator::create(this);
+
+ m_scheduler =
+ Platform::current()->currentThread()->scheduler()->createWebViewScheduler(
+ this, settingsImpl());
+
setVisibilityState(visibilityState, true);
initializeLayerTreeView();
- m_devToolsEmulator = DevToolsEmulator::create(this);
-
allInstances().add(this);
m_pageImportanceSignals.setObserver(client);

Powered by Google App Engine
This is Rietveld 408576698