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

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

Issue 2471153002: [scheduler] Use Finch to control background throttling. (Closed)
Patch Set: 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..db6ecc942968cef9824bc6a1119237b2048798f2 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -432,11 +432,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client,
m_displayMode(WebDisplayModeBrowser),
m_elasticOverscroll(FloatSize()),
m_mutator(nullptr),
- m_scheduler(wrapUnique(Platform::current()
- ->currentThread()
- ->scheduler()
- ->createWebViewScheduler(this)
- .release())),
+ m_scheduler(nullptr),
alex clarke (OOO till 29th) 2016/11/02 17:53:49 I think we can omit this (odd the line above exist
altimin 2016/11/02 21:10:02 Done.
m_lastFrameTimeMonotonic(0),
m_overrideCompositorVisibility(false) {
Page::PageClients pageClients;
@@ -461,12 +457,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