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

Unified Diff: Source/modules/InitModules.cpp

Issue 1158443008: compositor-worker: Share a thread and an isolate for compositor workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tot-merge Created 5 years, 6 months 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
« no previous file with comments | « Source/core/workers/WorkerThread.cpp ('k') | Source/modules/compositorworker/CompositorWorkerManager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/InitModules.cpp
diff --git a/Source/modules/InitModules.cpp b/Source/modules/InitModules.cpp
index 1cfa4148a3228f97f24be8da134577da668228f6..6c18b364384254291e897cb486e685cb820c4254 100644
--- a/Source/modules/InitModules.cpp
+++ b/Source/modules/InitModules.cpp
@@ -13,6 +13,7 @@
#include "modules/EventTargetModulesNames.h"
#include "modules/IndexedDBNames.h"
#include "modules/accessibility/AXObjectCacheImpl.h"
+#include "modules/compositorworker/CompositorWorkerManager.h"
#include "modules/filesystem/DraggedIsolatedFileSystemImpl.h"
#include "modules/webdatabase/DatabaseManager.h"
@@ -33,11 +34,16 @@ void ModulesInitializer::init()
CoreInitializer::init();
+ if (RuntimeEnabledFeatures::compositorWorkerEnabled())
+ CompositorWorkerManager::initialize();
+
ASSERT(isInitialized());
}
void ModulesInitializer::terminateThreads()
{
+ if (RuntimeEnabledFeatures::compositorWorkerEnabled())
+ CompositorWorkerManager::shutdown();
DatabaseManager::terminateDatabaseThread();
}
« no previous file with comments | « Source/core/workers/WorkerThread.cpp ('k') | Source/modules/compositorworker/CompositorWorkerManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698