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

Unified Diff: Source/core/workers/WorkerThread.cpp

Issue 1018863002: compositor-worker: Introduce CompositorWorker. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 9 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.h ('k') | Source/modules/EventTargetModulesFactory.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerThread.cpp
diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp
index f9893705bf31c1c30077863ed0c4821237627f04..ec21aecf1fd0e24c4e9052a1a250a3ffbbce8b1e 100644
--- a/Source/core/workers/WorkerThread.cpp
+++ b/Source/core/workers/WorkerThread.cpp
@@ -290,7 +290,7 @@ void WorkerThread::start()
if (m_thread)
return;
- m_thread = WebThreadSupportingGC::create("WebCore: Worker");
+ m_thread = createWebThreadSupportingGC();
m_thread->postTask(FROM_HERE, new Task(WTF::bind(&WorkerThread::initialize, this)));
}
@@ -360,6 +360,11 @@ void WorkerThread::initialize()
postDelayedTask(FROM_HERE, createSameThreadTask(&WorkerThread::idleHandler, this), kShortIdleHandlerDelayMs);
}
+PassOwnPtr<WebThreadSupportingGC> WorkerThread::createWebThreadSupportingGC()
+{
+ return WebThreadSupportingGC::create("WebCore: Worker");
+}
+
void WorkerThread::cleanup()
{
// This should be called before we start the shutdown procedure.
« no previous file with comments | « Source/core/workers/WorkerThread.h ('k') | Source/modules/EventTargetModulesFactory.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698